The datatracker logs directly to syslog, but some python libraries send debug logging to the python logging module. Added a python logging syslog handler to the django logging setup, in order to make it easier to turn on built-in logging from external modules when needed.
- Legacy-Id: 17976
This commit is contained in:
parent
1cc9712ddf
commit
96bbf3457a
|
@ -233,7 +233,7 @@ LOGGING = {
|
||||||
'propagate': False,
|
'propagate': False,
|
||||||
},
|
},
|
||||||
'oidc_provider': {
|
'oidc_provider': {
|
||||||
'handlers': ['console', ],
|
'handlers': ['syslog', 'console', ],
|
||||||
'level': 'DEBUG',
|
'level': 'DEBUG',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -246,6 +246,13 @@ LOGGING = {
|
||||||
'class': 'logging.StreamHandler',
|
'class': 'logging.StreamHandler',
|
||||||
'formatter': 'plain',
|
'formatter': 'plain',
|
||||||
},
|
},
|
||||||
|
'syslog': {
|
||||||
|
'level': 'DEBUG',
|
||||||
|
'class': 'logging.handlers.SysLogHandler',
|
||||||
|
'facility': 'user',
|
||||||
|
'formatter': 'plain',
|
||||||
|
'address': '/dev/log'
|
||||||
|
},
|
||||||
'debug_console': {
|
'debug_console': {
|
||||||
# Active only when DEBUG=True
|
# Active only when DEBUG=True
|
||||||
'level': 'DEBUG',
|
'level': 'DEBUG',
|
||||||
|
|
Loading…
Reference in a new issue