Created
November 13, 2012 05:26
-
-
Save GrahamDumpleton/4064096 to your computer and use it in GitHub Desktop.
Suppress requests module connection logging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
class RequestsConnectionFilter(logging.Filter): | |
def filter(self, record): | |
return False | |
logging.getLogger('newrelic.lib.requests.packages.urllib3.connectionpool').addFilter(RequestsConnectionFilter()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment