From e19e7a1e5372927ccfeb05ee7a17fbdf5daa3012 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 8 Mar 2020 23:05:48 +0100 Subject: ... --- notmuch-ssh-server | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/notmuch-ssh-server b/notmuch-ssh-server index 5341994..3ff0559 100644 --- a/notmuch-ssh-server +++ b/notmuch-ssh-server @@ -25,13 +25,16 @@ if original_command is None: sys.exit(os.EX_USAGE) original_command = shlex.split(original_command, comments = True) +logging.debug("Original command: %s", original_command) if len(original_command) < 1: sys.exit(os.EX_USAGE) config_section = original_command[0] +logging.debug("Config section: %s", config_section) command_environment = config[config_section] if config.has_section(config_section) else config[config.default_section] +logging.info("Command environment: %s", command_environment) -logging.info("notmuch %s # %s", original_command[1:], command_environment) +logging.info("notmuch %s", original_command[1:]) os.execvpe('@notmuch@/bin/notmuch', original_command[1:], command_environment) -- cgit v1.2.3