Add more debug logging to _try_direct_key_lookup

This commit is contained in:
Piotr F. Mieszkowski 2022-07-13 22:24:29 +02:00 committed by Gitea
parent 603710c41e
commit 0cb656f89d
1 changed files with 2 additions and 0 deletions

View File

@ -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