Commit c8ebfb22 authored by Johan Ström's avatar Johan Ström

Fix syslog

parent 644a069f
Pipeline #367 passed with stage
in 6 minutes and 59 seconds
......@@ -195,9 +195,9 @@ class AgoApp:
# Try to autodetect OS syslog unix socket. For example in docker
# this wont be found.
syslog_kwargs = dict(facility=SysLogHandler.facility_names[syslog_fac])
for f in ["/dev/log", "/var/run/log"]:
if os.path.exists(f):
syslog_kwargs[address] = syslog_path
for syslog_path in ["/dev/log", "/var/run/log"]:
if os.path.exists(syslog_path):
syslog_kwargs['address'] = syslog_path
print("Warning: no well-known syslog file found; logging via UDP", file=sys.stderr)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment