From 72d5fba29cc481e7fbfd4c0183e75c309ce661e2 Mon Sep 17 00:00:00 2001 From: jrconlin Date: Tue, 22 Nov 2016 09:58:35 -0800 Subject: [PATCH] fix: Add exception info to log.info call closes #742 --- autopush/web/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autopush/web/base.py b/autopush/web/base.py index a0c5939f..7a06b665 100644 --- a/autopush/web/base.py +++ b/autopush/web/base.py @@ -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 ""),