From 16dc736b235e461ca89e71129e232d12a5788a80 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 22 Aug 2012 12:11:17 +0200 Subject: [PATCH] [IMP] log exceptions as exceptions bzr revid: chs@openerp.com-20120822101117-qoahu73ix8fcmcim --- openerp/netsvc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openerp/netsvc.py b/openerp/netsvc.py index 506c1e4bcba..170108a13ad 100644 --- a/openerp/netsvc.py +++ b/openerp/netsvc.py @@ -3,7 +3,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2004-2011 OpenERP SA () +# Copyright (C) 2004-2012 OpenERP SA () # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -376,11 +376,11 @@ def dispatch_rpc(service_name, method, params): except openerp.exceptions.Warning: raise except openerp.exceptions.DeferredException, e: - _logger.error(tools.exception_to_unicode(e)) + _logger.exception(tools.exception_to_unicode(e)) post_mortem(e.traceback) raise except Exception, e: - _logger.error(tools.exception_to_unicode(e)) + _logger.exception(tools.exception_to_unicode(e)) post_mortem(sys.exc_info()) raise