diff options
Diffstat (limited to 'notmuch-ssh-server')
-rw-r--r-- | notmuch-ssh-server | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
6 | from xdg import BaseDirectory | 6 | from xdg import BaseDirectory |
7 | from pathlib import Path | 7 | from pathlib import Path |
8 | from configparser import ConfigParser | 8 | from configparser import ConfigParser |
9 | import logging | ||
10 | |||
11 | |||
12 | logging.basicConfig(handlers = [logging.handlers.SysLogHandler()], level = logging.DEBUG) | ||
9 | 13 | ||
10 | 14 | ||
11 | config = ConfigParser() | 15 | config = ConfigParser() |
@@ -27,4 +31,5 @@ config_section = original_command[0] | |||
27 | 31 | ||
28 | command_environment = config[config_section] if config.has_section(config_section) else config[config.default_section] | 32 | command_environment = config[config_section] if config.has_section(config_section) else config[config.default_section] |
29 | 33 | ||
34 | logging.info("notmuch %s # %s", original_command[1:], command_environment) | ||
30 | os.execvpe('@notmuch@/bin/notmuch', original_command[1:], command_environment) | 35 | os.execvpe('@notmuch@/bin/notmuch', original_command[1:], command_environment) |