Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce-worker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ecommerce-worker
Commits
3ea44c9f
Commit
3ea44c9f
authored
Sep 23, 2015
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from edx/renzo/prevent-logging-hijack
Prevent Celery from removing handlers on the root logger.
parents
4a99afa3
a917f69e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
ecommerce_worker/configuration/base.py
+4
-0
ecommerce_worker/configuration/logger.py
+1
-1
No files found.
ecommerce_worker/configuration/base.py
View file @
3ea44c9f
...
@@ -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
...
...
ecommerce_worker/configuration/logger.py
View file @
3ea44c9f
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment