Fix syslog logging on FreeBSD #407

Merged
witten merged 1 commits from PlqnK/borgmatic:fix-syslog-freebsd into master 2021-06-23 17:21:27 +00:00
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ def configure_logging(
syslog_path = '/dev/log'
elif os.path.exists('/var/run/syslog'):
syslog_path = '/var/run/syslog'
elif os.path.exists('/var/run/log'):
syslog_path = '/var/run/log'
if syslog_path and not interactive_console():
syslog_handler = logging.handlers.SysLogHandler(address=syslog_path)