mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-08-01 22:23:01 +02:00
Fix syslog logging on FreeBSD (#407).
Reviewed-on: https://projects.torsion.org/witten/borgmatic/pulls/407
This commit is contained in:
@@ -152,6 +152,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)
|
||||
|
||||
Reference in New Issue
Block a user