Commit 3ea44c9f by Renzo Lucioni

Merge pull request #3 from edx/renzo/prevent-logging-hijack

Prevent Celery from removing handlers on the root logger.
parents 4a99afa3 a917f69e
...@@ -11,6 +11,10 @@ CELERY_RESULT_BACKEND = None ...@@ -11,6 +11,10 @@ CELERY_RESULT_BACKEND = None
CELERY_IMPORTS = ( CELERY_IMPORTS = (
'ecommerce_worker.fulfillment.v1.tasks', 'ecommerce_worker.fulfillment.v1.tasks',
) )
# Prevent Celery from removing handlers on the root logger. Allows setting custom logging handlers.
# See http://celery.readthedocs.org/en/latest/configuration.html#celeryd-hijack-root-logger.
CELERYD_HIJACK_ROOT_LOGGER = False
# END CELERY # END CELERY
......
...@@ -11,7 +11,7 @@ def get_logger_config(log_dir='/var/tmp', ...@@ -11,7 +11,7 @@ def get_logger_config(log_dir='/var/tmp',
dev_env=False, dev_env=False,
debug=False, debug=False,
local_loglevel='INFO', local_loglevel='INFO',
service_variant='ecommerce-worker'): service_variant='ecommerce_worker'):
""" """
Returns a dictionary containing logging configuration. Returns a dictionary containing logging configuration.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment