Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
92c092f7
Verified
Commit
92c092f7
authored
2 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Prevent Celery from overriding logging configuration
parent
db80dfaf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1067
Resolve "Celery does not honour logging configuration"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/core/celery.py
+7
-1
7 additions, 1 deletion
aleksis/core/celery.py
with
7 additions
and
1 deletion
aleksis/core/celery.py
+
7
−
1
View file @
92c092f7
...
...
@@ -4,7 +4,7 @@ from traceback import format_exception
from
django.conf
import
settings
from
celery
import
Celery
from
celery.signals
import
task_failure
from
celery.signals
import
setup_logging
,
task_failure
from
.util.core_helpers
import
get_site_preferences
from
.util.email
import
send_email
...
...
@@ -35,3 +35,9 @@ def task_failure_notifier(
"
traceback
"
:
""
.
join
(
format_exception
(
type
(
exception
),
exception
,
traceback
)),
},
)
@setup_logging.connect
def
on_setup_logging
(
*
args
,
**
kwargs
):
"""
Prevent Celery from overriding logging configuration.
"""
pass
# noqa
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment