Use configured pgp_mime.LOG.level for crypt client logging.
authorW. Trevor King <wking@tremily.us>
Mon, 23 Apr 2012 17:39:24 +0000 (13:39 -0400)
committerW. Trevor King <wking@tremily.us>
Mon, 23 Apr 2012 17:39:24 +0000 (13:39 -0400)
pgp_mime/crypt.py

index 40d4572c5ca6aff846c3680ab7960272f40a62bd..7eec6d6dc40e06a66f607619313068008c6de3d7 100644 (file)
@@ -33,7 +33,7 @@ def connect(client, filename, **kwargs):
 
 def get_client(**kwargs):
     client = _client.AssuanClient(name='pgp-mime', close_on_disconnect=True)
-    client.logger.setLevel(_logging.DEBUG)
+    client.logger.setLevel(_LOG.level)
     socket = connect(client, '~/src/gpgme/build/src/gpgme-tool', **kwargs)
     #socket = connect(client, '~/.assuan/S.gpgme-tool', **kwargs)
     return (client, socket)