Projet

Général

Profil

0001-debian-disable-syslog-loggers-if-there-s-no-dev-log-.patch

Frédéric Péters, 07 octobre 2019 15:20

Télécharger (1,07 ko)

Voir les différences:

Subject: [PATCH] debian: disable syslog loggers if there's no /dev/log
 (#36738)

 debian/debian_config_common.py | 7 +++++++
 1 file changed, 7 insertions(+)
debian/debian_config_common.py
167 167
        LOGGING['loggers']['']['handlers'].remove('syslog')
168 168
        LOGGING['loggers']['']['handlers'].append('journald')
169 169

  
170
elif not os.path.exists('/dev/log'):
171
    # if three's no syslog (for example when building a docker image), remove
172
    # those loggers.
173
    LOGGING['loggers']['']['handlers'].remove('syslog')
174
    LOGGING['loggers']['py.warnings']['handlers'].remove('syslog_no_filter')
175

  
176

  
170 177
ETC_DIR = '/etc/%s' % PROJECT_NAME
171 178
VAR_DIR = '/var/lib/%s' % PROJECT_NAME
172 179

  
173
-