From d2533313bc17b30c50c961d1507e0827df4b6dca Mon Sep 17 00:00:00 2001 From: Victor Bouvier-Deleau Date: Fri, 2 Apr 2021 14:11:50 +0200 Subject: [PATCH] Fix syslog logging on FreeBSD The UNIX domain socket to use on FreeBSD is /var/run/log. See syslogd FreeBSD man page: https://www.freebsd.org/cgi/man.cgi?query=syslogd&sektion=8 --- borgmatic/logger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/borgmatic/logger.py b/borgmatic/logger.py index 7099230..7dafd8d 100644 --- a/borgmatic/logger.py +++ b/borgmatic/logger.py @@ -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)