Message409088
Hello!
If you use multiprocessing logger with logging.handlers.QueueHandler it will deadlock on first attempt at logging.
First attempt will initialize queue's background thread, which uses multiprocessing logger itself which will result in something what looks like deadlock :)
There are workarounds and I'm not sure if it can be classified as a bug, prehaps a little note in documentation about this behaviour will do?
I've attached example script. |
|
Date |
User |
Action |
Args |
2021-12-23 13:12:46 | iamdbychkov | set | recipients:
+ iamdbychkov |
2021-12-23 13:12:46 | iamdbychkov | set | messageid: <1640265166.09.0.322257892524.issue46163@roundup.psfhosted.org> |
2021-12-23 13:12:46 | iamdbychkov | link | issue46163 messages |
2021-12-23 13:12:46 | iamdbychkov | create | |
|