Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/backend/pygpg.py')
-rw-r--r--openpgp/backend/pygpg.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/backend/pygpg.py b/openpgp/backend/pygpg.py
index 934987d..78f603a 100644
--- a/openpgp/backend/pygpg.py
+++ b/openpgp/backend/pygpg.py
@@ -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')