From 47587ca0a996dca8e027d368e5e4400a6edca712 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 8 Mar 2020 23:00:58 +0100 Subject: ... --- notmuch-ssh-server | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'notmuch-ssh-server') diff --git a/notmuch-ssh-server b/notmuch-ssh-server index 493bf02..ec8e280 100644 --- a/notmuch-ssh-server +++ b/notmuch-ssh-server @@ -6,6 +6,10 @@ import shlex from xdg import BaseDirectory from pathlib import Path from configparser import ConfigParser +import logging + + +logging.basicConfig(handlers = [logging.handlers.SysLogHandler()], level = logging.DEBUG) config = ConfigParser() @@ -27,4 +31,5 @@ config_section = original_command[0] command_environment = config[config_section] if config.has_section(config_section) else config[config.default_section] +logging.info("notmuch %s # %s", original_command[1:], command_environment) os.execvpe('@notmuch@/bin/notmuch', original_command[1:], command_environment) -- cgit v1.2.3