Closed tecnavia-dev closed 9 months ago
I seem to get this problem when I have both a root
and a loggers
key in the dictionary. Do you still get this problem if you remove root
?
The purpose of the removing is so that things are not logged twice when using the queued handler I think.
Describe the bug When I use a custom log config the subprocess crashes, because the handlers are missing.
To Reproduce
File config:
Expected behavior All message logged
Actual results After a subprocess is created It crashes
Error:
Environment Info:
Solution I found that when the subprocess is created, It removes the handlers in the config.
logging.py
I removed __remove_handlers_from_config()__ and It fixed my issue.
What is the purpose of this function? Should I expect any problems by removing it?