Commit a917f69e by Renzo Lucioni

Prevent Celery from removing handlers on the root logger.

Allows setting custom logging handlers. Also fix service variant name.

fix
parent 4a99afa3
......@@ -11,6 +11,10 @@ CELERY_RESULT_BACKEND = None
CELERY_IMPORTS = (
'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
......
......@@ -11,7 +11,7 @@ def get_logger_config(log_dir='/var/tmp',
dev_env=False,
debug=False,
local_loglevel='INFO',
service_variant='ecommerce-worker'):
service_variant='ecommerce_worker'):
"""
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