log error message when API requests fail

This commit is contained in:
MinRK 2014-04-23 12:41:27 -07:00
parent 748b2c64d5
commit f824aee955

View File

@ -287,6 +287,7 @@ def json_errors(method):
except web.HTTPError as e:
status = e.status_code
message = e.log_message
self.log.warn(message)
self.set_status(e.status_code)
self.finish(json.dumps(dict(message=message)))
except Exception: