From: W. Trevor King Date: Mon, 23 Apr 2012 17:39:24 +0000 (-0400) Subject: Use configured pgp_mime.LOG.level for crypt client logging. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d65de297e7918c8fcda04e16ae8d1ac86681b15f;p=pgp-mime.git Use configured pgp_mime.LOG.level for crypt client logging. --- diff --git a/pgp_mime/crypt.py b/pgp_mime/crypt.py index 40d4572..7eec6d6 100644 --- a/pgp_mime/crypt.py +++ b/pgp_mime/crypt.py @@ -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)