From ad98da68f36f5b5fb26c95ca0a149d79bb1f9f18 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 24 Nov 2014 13:52:36 +0100 Subject: [PATCH] [IMP] http: do not log traceback for Warnings --- openerp/http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openerp/http.py b/openerp/http.py index 787be3320ea..aafc7c96810 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -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",