projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72874e1
)
[IMP] http: do not log traceback for Warnings
author
Christophe Simonis
<chs@odoo.com>
Mon, 24 Nov 2014 12:52:36 +0000
(13:52 +0100)
committer
Christophe Simonis
<chs@odoo.com>
Mon, 24 Nov 2014 12:52:36 +0000
(13:52 +0100)
openerp/http.py
patch
|
blob
|
history
diff --git
a/openerp/http.py
b/openerp/http.py
index
787be33
..
aafc7c9
100644
(file)
--- 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",