refine logging

This commit is contained in:
holger krekel 2024-03-27 18:20:00 +01:00
parent f5dc4cb71e
commit 989ce70f97

View File

@ -97,7 +97,6 @@ def handle_dovecot_protocol(rfile, wfile, notifier):
def handle_dovecot_request(msg, transactions, notifier): def handle_dovecot_request(msg, transactions, notifier):
# see https://doc.dovecot.org/3.0/developer_manual/design/dict_protocol/ # see https://doc.dovecot.org/3.0/developer_manual/design/dict_protocol/
logging.warning("handling request: %r", msg)
short_command = msg[0] short_command = msg[0]
parts = msg[1:].split("\t") parts = msg[1:].split("\t")
if short_command == DICTPROXY_LOOKUP_CHAR: if short_command == DICTPROXY_LOOKUP_CHAR:
@ -164,7 +163,7 @@ def main():
try: try:
handle_dovecot_protocol(self.rfile, self.wfile, notifier) handle_dovecot_protocol(self.rfile, self.wfile, notifier)
except Exception: except Exception:
logging.exception("Exception in the handler") logging.exception("Exception in the dovecot dictproxy handler")
raise raise
try: try: