Closed Kubk0 closed 2 years ago
You can pass the log_level
argument when creating the Edupage
object like this:
from edupage import LogLevel
# ...
edupage = Edupage("school", "username", "password", log_level=LogLevel.NONE)
This will disable all logging by edupage_api
Please close this issue if my comment helped you.
Can i still get the notification text if i disable just the logging?
Yes, you can. log_level=LogLevel.NONE
disables DEBUG
, WARNING
and ERROR
messages from edupage-api
, and it doesn't influence other behaviour.
Is there a way that i can disable the "[WARNING] Found notification with empty type, skipping..." messages and still get the text of the notification?