Commit c16625f8 authored by Philipp Hörist's avatar Philipp Hörist

[openpgp] Add debug logging for python-gnupg

parent 9e3e4d45
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment