response['id'] = self.jsonrequest.get('id')
response["result"] = self._call_function(**self.params)
except AuthenticationError, e:
- _logger.exception("Exception during JSON request handling.")
+ _logger.exception("JSON-RPC AuthenticationError in %s.", self.httprequest.path)
se = serialize_exception(e)
error = {
'code': 100,
'data': se
}
except Exception, e:
- _logger.exception("Exception during JSON request handling.")
+ # Mute test cursor error for runbot
+ if not (openerp.tools.config['test_enable'] and isinstance(e, psycopg2.OperationalError)):
+ _logger.exception("JSON-RPC Exception in %s.", self.httprequest.path)
se = serialize_exception(e)
error = {
'code': 200,