Skip to content

Instantly share code, notes, and snippets.

@GrahamDumpleton
Created November 13, 2012 05:26
Show Gist options
  • Save GrahamDumpleton/4064096 to your computer and use it in GitHub Desktop.
Save GrahamDumpleton/4064096 to your computer and use it in GitHub Desktop.
Suppress requests module connection logging.
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