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
parent 986844fa47
commit b487170160
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