Skip to content

Commit

Permalink
chore: improve default logging settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed May 11, 2023
1 parent 7ed3ded commit d4f617a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def route_urgent_task(name, args, kwargs, options, task=None, **kw):


# Logging
LOG_LEVEL = os.environ.get('LOG_LEVEL', default=('INFO' if DEBUG else 'WARNING')).upper()
LOG_LEVEL = os.environ.get('LOG_LEVEL', default='INFO').upper()

LOGGING = {
'version': 1,
Expand All @@ -464,6 +464,7 @@ def route_urgent_task(name, args, kwargs, options, task=None, **kw):
},
'json': {
'()': 'project.logging_formatter.JsonLogFormatter',
'format': '[%(asctime)s][%(threadName)s][%(levelname)s][%(name)s]: %(message)s'
},
},
'handlers': {
Expand Down

0 comments on commit d4f617a

Please sign in to comment.