From 0cb656f89d9e750dc4832488ec17e340e482d2c6 Mon Sep 17 00:00:00 2001 From: "Piotr F. Mieszkowski" Date: Wed, 13 Jul 2022 22:24:29 +0200 Subject: [PATCH] Add more debug logging to _try_direct_key_lookup --- lacre/mailgate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lacre/mailgate.py b/lacre/mailgate.py index 9f3079b..3403895 100644 --- a/lacre/mailgate.py +++ b/lacre/mailgate.py @@ -183,10 +183,12 @@ def _try_direct_key_lookup(recipient, keys, strict_mode): return None if recipient in keys.values(): + LOG.info(f"Found key for {recipient}") return recipient, recipient (newto, topic) = text.parse_delimiter(recipient) if newto in keys.values(): + LOG.info(f"Found key for {newto}, stripped {recipient}") return recipient, newto return None