summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2020-03-08 23:00:58 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2020-03-08 23:00:58 +0100
commit47587ca0a996dca8e027d368e5e4400a6edca712 (patch)
tree62d2e5c47cea2e2eb2b63cba3433454c709eaaf4
parentad8d6628c4910ac81ed3227f4fa4231124e6e892 (diff)
downloadutils-47587ca0a996dca8e027d368e5e4400a6edca712.tar
utils-47587ca0a996dca8e027d368e5e4400a6edca712.tar.gz
utils-47587ca0a996dca8e027d368e5e4400a6edca712.tar.bz2
utils-47587ca0a996dca8e027d368e5e4400a6edca712.tar.xz
utils-47587ca0a996dca8e027d368e5e4400a6edca712.zip
...
-rw-r--r--notmuch-ssh-server5
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
6from xdg import BaseDirectory 6from xdg import BaseDirectory
7from pathlib import Path 7from pathlib import Path
8from configparser import ConfigParser 8from configparser import ConfigParser
9import logging
10
11
12logging.basicConfig(handlers = [logging.handlers.SysLogHandler()], level = logging.DEBUG)
9 13
10 14
11config = ConfigParser() 15config = ConfigParser()
@@ -27,4 +31,5 @@ config_section = original_command[0]
27 31
28command_environment = config[config_section] if config.has_section(config_section) else config[config.default_section] 32command_environment = config[config_section] if config.has_section(config_section) else config[config.default_section]
29 33
34logging.info("notmuch %s # %s", original_command[1:], command_environment)
30os.execvpe('@notmuch@/bin/notmuch', original_command[1:], command_environment) 35os.execvpe('@notmuch@/bin/notmuch', original_command[1:], command_environment)