isislovecruft / python-gnupg

A modified version of python-gnupg, including security patches, extensive documentation, and extra features.
Other
424 stars 172 forks source link

Silence log message generated upon import #266

Open chaoflow opened 5 years ago

chaoflow commented 5 years ago

Upon from pretty_bad_protocol import gnupg there is a log message, which I'd like to suppress.

I currently working around it using:

import logging
logging.getLogger('gnupg').propagate = False
from pretty_bad_protocol import gnupg
logging.getLogger('gnupg').propagate = True

It would be great is such workaround would not be needed, but gnupg be simply silent upon import.