summaryrefslogtreecommitdiff
path: root/notmuch-ssh-server
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch-ssh-server')
-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)