diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2020-03-08 23:00:58 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2020-03-08 23:00:58 +0100 |
commit | 47587ca0a996dca8e027d368e5e4400a6edca712 (patch) | |
tree | 62d2e5c47cea2e2eb2b63cba3433454c709eaaf4 /notmuch-ssh-server | |
parent | ad8d6628c4910ac81ed3227f4fa4231124e6e892 (diff) | |
download | utils-47587ca0a996dca8e027d368e5e4400a6edca712.tar utils-47587ca0a996dca8e027d368e5e4400a6edca712.tar.gz utils-47587ca0a996dca8e027d368e5e4400a6edca712.tar.bz2 utils-47587ca0a996dca8e027d368e5e4400a6edca712.tar.xz utils-47587ca0a996dca8e027d368e5e4400a6edca712.zip |
...
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) |