Projet

Général

Profil

0001-debian-configure-journald-filters-and-formatter-3061.patch

Benjamin Dauvergne, 14 février 2019 15:01

Télécharger (1023 octets)

Voir les différences:

Subject: [PATCH] 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.
 debian/debian_config_common.py | 2 ++
 1 file changed, 2 insertions(+)
debian/debian_config_common.py
168 168
    else:
169 169
        LOGGING['handlers']['journald'] = {
170 170
            'class': 'hobo.journal.JournalHandler',
171
            'filters': ['request_context'],
172
            'formatter': 'syslog',
171 173
        }
172 174
        LOGGING['loggers']['']['handlers'].remove('syslog')
173 175
        LOGGING['loggers']['']['handlers'].append('journald')
174
-