--- a/hooks-queue.py Wed Aug 24 19:37:29 2016 +0800
+++ b/hooks-queue.py Wed Aug 24 19:46:24 2016 +0800
return self.application.rconn
+ def write_error(self, status_code, **kwargs):
+ if 'exc_info' in kwargs:
+ result = getattr(kwargs['exc_info'][1], 'log_message', result)
+ self.finish({'result': result})
def parse_json_payload(self):
return json.loads(self.request.body)