From 76d360035548c21b387248549e69fc722ad43427 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 8 Mar 2020 23:02:05 +0100 Subject: ... --- notmuch-ssh-server | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'notmuch-ssh-server') diff --git a/notmuch-ssh-server b/notmuch-ssh-server index ec8e280..9f2ee76 100644 --- a/notmuch-ssh-server +++ b/notmuch-ssh-server @@ -7,9 +7,11 @@ from xdg import BaseDirectory from pathlib import Path from configparser import ConfigParser import logging +from logging.handlers import SysLogHandler -logging.basicConfig(handlers = [logging.handlers.SysLogHandler()], level = logging.DEBUG) +syslog = SysLogHandler +logging.basicConfig(handlers = [syslog], level = logging.DEBUG) config = ConfigParser() -- cgit v1.2.3