From: Fredrik Tolf Date: Mon, 5 Jan 2026 01:17:22 +0000 (+0100) Subject: python: Fix syslog facility. X-Git-Url: http://www.dolda2000.com/gitweb/?a=commitdiff_plain;h=11351557acd549af47d537d45c49f51d7ef5097f;p=ashd.git python: Fix syslog facility. --- diff --git a/python3/ashd-wsgi3 b/python3/ashd-wsgi3 index 6a91a14..656e2ae 100755 --- a/python3/ashd-wsgi3 +++ b/python3/ashd-wsgi3 @@ -40,7 +40,7 @@ if setlog: } if os.getenv("ASHD_USESYSLOG"): import logging.handlers - params["handlers"] = [logging.handlers.SysLogHandler("/dev/log")] + params["handlers"] = [logging.handlers.SysLogHandler("/dev/log", facility=logging.handlers.SysLogHandler.LOG_DAEMON)] logging.basicConfig(**params) log = logging.getLogger("ashd-wsgi3") diff --git a/python3/scgi-wsgi3 b/python3/scgi-wsgi3 index bd565ab..484e919 100755 --- a/python3/scgi-wsgi3 +++ b/python3/scgi-wsgi3 @@ -52,7 +52,7 @@ if setlog: } if os.getenv("ASHD_USESYSLOG"): import logging.handlers - params["handlers"] = [logging.handlers.SysLogHandler("/dev/log")] + params["handlers"] = [logging.handlers.SysLogHandler("/dev/log", facility=logging.handlers.SysLogHandler.LOG_DAEMON)] logging.basicConfig(**params) if sk is None: