From d65de297e7918c8fcda04e16ae8d1ac86681b15f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 23 Apr 2012 13:39:24 -0400 Subject: [PATCH] Use configured pgp_mime.LOG.level for crypt client logging. --- pgp_mime/crypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2