Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence log message generated upon import #266

Open
chaoflow opened this issue Sep 28, 2019 · 0 comments
Open

Silence log message generated upon import #266

chaoflow opened this issue Sep 28, 2019 · 0 comments

Comments

@chaoflow
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant