3 ms·
This is not a Celery-specific tip, but as Celery also likes to "tweak" your logging configuration you can use https://pypi.python.org/pypi/logging_tree https://
by TomaszZielinski 12y ago
This is not a Celery-specific tip, but as Celery also likes to "tweak" your logging configuration you can use https://pypi.python.org/pypi/logging_tree https://pypi.python.org/pypi/logging_tree to see what's going on under the hood.
- denibertovic 12y agoAwesome, tnx for the tip! :)
- natedub 12y agoYou can disable Celery's automatic logging configuration by connecting a listener to the setup_logging signal. https://celery.readthedocs.org/en/latest/userguide/signals.html#setup-logging https://celery.readthedocs.org/en/latest/userguide/signals.h... Of course, logging_tree is a great tool as well!
- TomaszZielinski 12y agoTake a look at https://github.com/celery/celery/blob/v3.0.23/celery/utils/log.py#L250 https://github.com/celery/celery/blob/v3.0.23/celery/utils/l... - it's an older version that I once checked but it seems to be patching loggers unconditionally (i.e. outside any signal handler).