Mercurial > code > home > repos > homeauto
comparison service/reasoning/reasoning.py @ 315:8db492695a51
log oneshot tracebacks
Ignore-this: 4578ac8df47feb9c881790170e2168f6
author | drewp@bigasterisk.com |
---|---|
date | Wed, 12 Oct 2016 18:37:41 -0700 |
parents | c51075f267bc |
children | 7716b1810d6c |
comparison
equal
deleted
inserted
replaced
314:c51075f267bc | 315:8db492695a51 |
---|---|
176 try: | 176 try: |
177 dt = self.settings.reasoning.inputGraph.addOneShotFromString( | 177 dt = self.settings.reasoning.inputGraph.addOneShotFromString( |
178 self.request.body, self.request.headers['content-type']) | 178 self.request.body, self.request.headers['content-type']) |
179 self.set_header('x-graph-ms', str(1000 * dt)) | 179 self.set_header('x-graph-ms', str(1000 * dt)) |
180 except Exception as e: | 180 except Exception as e: |
181 traceback.print_exc() | |
181 log.error(e) | 182 log.error(e) |
182 raise | 183 raise |
183 | 184 |
184 # for reuse | 185 # for reuse |
185 class GraphResource(cyclone.web.RequestHandler): | 186 class GraphResource(cyclone.web.RequestHandler): |