[openpgp] Add debug logging for python-gnupg
This commit is contained in:
1 parent
9e3e4d459a
commit
c16625f886
1 file changed
+4
@@ -23,6 +23,10 @@ import gnupg
|
||||
from openpgp.modules.util import DecryptionFailed
|
||||
|
||||
log = logging.getLogger('gajim.p.openpgp.pygnupg')
|
||||
if log.getEffectiveLevel() == logging.DEBUG:
|
||||
log = logging.getLogger('gnupg')
|
||||
log.addHandler(logging.StreamHandler())
|
||||
log.setLevel(logging.DEBUG)
|
||||
|
||||
KeyringItem = namedtuple('KeyringItem', 'jid keyid fingerprint')
|
||||
|
||||
|
||||
Reference in new issue
Block a user