debian: configure journald filters and formatter (#30613)
In order to get logs: * on par with syslog for the message, * with structured fields for requests/tenants informations.
This commit is contained in:
parent
7dbb469a4f
commit
e9929d3b5b
|
@ -168,6 +168,8 @@ if os.path.exists('/run/systemd/journal/socket'):
|
|||
else:
|
||||
LOGGING['handlers']['journald'] = {
|
||||
'class': 'hobo.journal.JournalHandler',
|
||||
'filters': ['request_context'],
|
||||
'formatter': 'syslog',
|
||||
}
|
||||
LOGGING['loggers']['']['handlers'].remove('syslog')
|
||||
LOGGING['loggers']['']['handlers'].append('journald')
|
||||
|
|
Loading…
Reference in New Issue