From 2d57bf44533d03e1418de121c5cfc17d4385029f Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 17 Oct 2016 11:08:34 +0300 Subject: [PATCH] gpg: beter logging while search for GPG key --- trezor_agent/gpg/decode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trezor_agent/gpg/decode.py b/trezor_agent/gpg/decode.py index 3cc7034..ec896f3 100644 --- a/trezor_agent/gpg/decode.py +++ b/trezor_agent/gpg/decode.py @@ -343,6 +343,8 @@ def load_public_key(pubkey_bytes, use_custom=False, ecdh=False): packet = pubkey while use_custom: + log.debug('GPG packet type: %s (algo = %s, custom = %s)', + packet['type'], packet['algo'], signature['_is_custom']) if packet['type'] in ('pubkey', 'subkey') and signature['_is_custom']: if ecdh == (packet['algo'] == protocol.ECDH_ALGO_ID): log.debug('found custom %s', packet['type'])