Skip to content

Commit

Permalink
Hacky mechanism to reduce twisted.web.client log noise.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerith committed Dec 2, 2013
1 parent 53481fb commit b0880e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vumi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
from vumi.errors import VumiError


# Stop Agent from logging two useless lines for every request.
# This is hacky, but there's no better way to do it for now.
from twisted.web import client
client._HTTP11ClientFactory.noisy = False


def import_module(name):
"""
This is a simpler version of `importlib.import_module` and does
Expand Down

0 comments on commit b0880e5

Please sign in to comment.