[IMP] http: do not log traceback for Warnings

This commit is contained in:
Christophe Simonis 2014-11-24 13:52:36 +01:00
parent 72874e1a21
commit ad98da68f3
1 changed files with 2 additions and 1 deletions

View File

@ -507,7 +507,8 @@ class JsonRequest(WebRequest):
try:
return super(JsonRequest, self)._handle_exception(exception)
except Exception:
_logger.exception("Exception during JSON request handling.")
if not isinstance(exception, openerp.exceptions.Warning):
_logger.exception("Exception during JSON request handling.")
error = {
'code': 200,
'message': "OpenERP Server Error",