You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to reduce the verbosity of the server for my unit tests. Besides the "cryptography is not installed, use of crypto disabled" as well as "Listening at xy" is to verbose for me.
I figured out that classes in the API derive a new logger instance from the root logger. This is very fine. I although saw that the loggers are all public. So in theory i could try to find them all and set there log levels. But this is not very usable.
I although tried to set the log level of the root logger to set the initial levels for all childs but this does not work too.
I could grab all logger instances and set their levels but this sucks too because i want my own loggers to use their configured levels.
So, how can I set the log level of the API?
EDIT 1:
I am wondering. After installing cryptography the root logger solution works. Maybe that call is somehow different?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Starting from here: https://github.com/FreeOpcUa/python-opcua/pull/528
I want to reduce the verbosity of the server for my unit tests. Besides the "cryptography is not installed, use of crypto disabled" as well as "Listening at xy" is to verbose for me.
I figured out that classes in the API derive a new logger instance from the root logger. This is very fine. I although saw that the loggers are all public. So in theory i could try to find them all and set there log levels. But this is not very usable.
I although tried to set the log level of the root logger to set the initial levels for all childs but this does not work too.
I could grab all logger instances and set their levels but this sucks too because i want my own loggers to use their configured levels.
So, how can I set the log level of the API?
EDIT 1:
I am wondering. After installing cryptography the root logger solution works. Maybe that call is somehow different?
Beta Was this translation helpful? Give feedback.
All reactions