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 (#743)
Browse files Browse the repository at this point in the history
closes #742
  • Loading branch information
jrconlin authored and bbangert committed Nov 23, 2016
1 parent 00a2f9a commit c43788c
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 c43788c

Please sign in to comment.