[IMP] Only unhandled exceptions are logged to the console by the netsvc layer.

bzr revid: vmt@openerp.com-20130220115337-6319hshm4vfwlr1o
This commit is contained in:
Vo Minh Thu 2013-02-20 12:53:37 +01:00
parent 1f269d0d93
commit 9412351315
3 changed files with 4 additions and 2 deletions

View File

@ -247,12 +247,16 @@ def dispatch_rpc(service_name, method, params):
log(rpc_request,logging.DEBUG, logline, replace_request_password(params), depth=1)
return result
except openerp.osv.orm.except_orm:
raise
except openerp.exceptions.AccessError:
raise
except openerp.exceptions.AccessDenied:
raise
except openerp.exceptions.Warning:
raise
except openerp.exceptions.RedirectWarning:
raise
except openerp.exceptions.DeferredException, e:
_logger.exception(tools.exception_to_unicode(e))
post_mortem(e.traceback)

View File

@ -59,7 +59,6 @@ from lxml import etree
import fields
import openerp
import openerp.netsvc as netsvc
import openerp.tools as tools
from openerp.tools.config import config
from openerp.tools.misc import CountingStream

View File

@ -128,7 +128,6 @@ def check(f):
else:
raise openerp.osv.orm.except_orm(_('Integrity Error'), inst[0])
except Exception:
_logger.exception("Uncaught exception")
raise
return wrapper