debian: remove syslog handlers if there's no /dev/log (#36738)

This commit is contained in:
Frédéric Péters 2019-10-08 14:46:03 +02:00
parent 4b6ea35bfc
commit 7e8d61f077
1 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,8 @@ elif not os.path.exists('/dev/log'):
# those loggers.
LOGGING['loggers']['']['handlers'].remove('syslog')
LOGGING['loggers']['py.warnings']['handlers'].remove('syslog_no_filter')
del LOGGING['handlers']['syslog']
del LOGGING['handlers']['syslog_no_filter']
ETC_DIR = '/etc/%s' % PROJECT_NAME