isislovecruft / python-gnupg

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

Silence log message generated upon import #266

Open chaoflow opened 4 years ago

chaoflow commented 4 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.