Projet

Général

Profil

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

Benjamin Dauvergne, 13 février 2019 14:49

Télécharger (1,1 ko)

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 | 3 +++
 1 file changed, 3 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
            'format': '%(application)s %(levelname)s %(tenant)s %(ip)s %(user)s %(request_id)s'
173
                      ' %(message)s',
171 174
        }
172 175
        LOGGING['loggers']['']['handlers'].remove('syslog')
173 176
        LOGGING['loggers']['']['handlers'].append('journald')
174
-