Skip to content

Commit

Permalink
Merge branch '956-957improve-logging' into 'master'
Browse files Browse the repository at this point in the history
Add root logging configuration and improve format

Closes #957 and #956

See merge request thalia/concrexit!1409

(cherry picked from commit 5fe141d)

3347ac8 Add root logging configuration and improve format
  • Loading branch information
lukovdm authored and Sébastiaan Versteeg committed Nov 13, 2019
1 parent 182c49c commit 6019ae5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions website/thaliawebsite/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,10 @@
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse',
},
},
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s '
'%(process)d %(thread)d %(message)s'
'format': '%(asctime)s %(name)s '
'%(levelname)s %(message)s'
},
},
'handlers': {
Expand All @@ -154,14 +149,20 @@
'logfile': {
'level': 'INFO',
'class': 'logging.FileHandler',
'formatter': 'verbose',
'filename': '/concrexit/log/django.log',
}
},
'loggers': {
'django': {
'handlers': ['console', 'logfile'],
'level': 'INFO',
'propagate': False,
},
'': {
'handlers': ['logfile'],
'level': 'INFO',
}
},
}

Expand Down

0 comments on commit 6019ae5

Please sign in to comment.