Skip to content

Commit

Permalink
flake8 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gnulnx committed Nov 9, 2016
1 parent 5030c8a commit aafd851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mongolog/handlers.py
Expand Up @@ -488,13 +488,13 @@ def emit(self, record):
customer_id = self.client_auth.split("/")[-2]
log_record['customer_id'] = customer_id

r = requests.post(self.client_auth, json=json.dumps(log_record, default=str), timeout=self.timeout, proxies={'http':''}) # noqa
r = requests.post(self.client_auth, json=json.dumps(log_record, default=str), timeout=self.timeout, proxies={'http': ''}) # noqa
# uncomment to debug
try:
print("Response:", json.dumps(r.json(), indent=4, sort_keys=True, default=str))
except ValueError as e:
if "No JSON object could be decoded" in str(e):
print("log write failed: ", r)

# Renable the requests logger
request_logger.disabled = True

0 comments on commit aafd851

Please sign in to comment.