Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fix: Add exception info to log.info call
Browse files Browse the repository at this point in the history
closes #742
  • Loading branch information
jrconlin committed Nov 22, 2016
1 parent bc4c7e1 commit 72d5fba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autopush/web/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,10 @@ def _validation_err(self, fail):
"""errBack for validation errors"""
fail.trap(InvalidRequest)
exc = fail.value
self.log.info(format="Request validation error",
self.log.info(format="Request validation error: {}".format(exc),
status_code=exc.status_code,
errno=exc.errno)
errno=exc.errno,
client_info=self._client_info)
self._write_response(exc.status_code, exc.errno,
message="Request did not validate %s" %
(exc.message or ""),
Expand Down

0 comments on commit 72d5fba

Please sign in to comment.