flowd_aggregator. better replace line endings when sending traceback to syslog.

This commit is contained in:
Ad Schellevis 2020-08-14 09:50:16 +02:00
parent 26ab28d522
commit 6cb0f29268

View File

@ -161,7 +161,7 @@ class Main(object):
if do_vacuum:
syslog.syslog(syslog.LOG_NOTICE, 'vacuum done')
except:
syslog.syslog(syslog.LOG_ERR, 'flowd aggregate died with message %s' % (traceback.format_exc()))
syslog.syslog(syslog.LOG_ERR, 'flowd aggregate died with message %s' % (traceback.format_exc().replace('\n', ' ')))
raise
# rotate if needed