[FIX] ir_cron: log message in the right place
Log message in except clause to force displaying traceback in logger exception. Courtesy of chs
This commit is contained in:
parent
0b4d01f1d3
commit
e3081dbb7e
|
@ -112,7 +112,6 @@ class ir_cron(osv.osv):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
cr.rollback()
|
cr.rollback()
|
||||||
_logger.exception("Call of self.pool.get('%s').%s(cr, uid, *%r) failed in Job %s" % (model_name, method_name, args, job_id))
|
|
||||||
|
|
||||||
def _callback(self, cr, uid, model_name, method_name, args, job_id):
|
def _callback(self, cr, uid, model_name, method_name, args, job_id):
|
||||||
""" Run the method associated to a given job
|
""" Run the method associated to a given job
|
||||||
|
@ -147,6 +146,7 @@ class ir_cron(osv.osv):
|
||||||
msg = "Model `%s` does not exist." % model_name
|
msg = "Model `%s` does not exist." % model_name
|
||||||
_logger.warning(msg)
|
_logger.warning(msg)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
_logger.exception("Call of self.pool.get('%s').%s(cr, uid, *%r) failed in Job %s" % (model_name, method_name, args, job_id))
|
||||||
self._handle_callback_exception(cr, uid, model_name, method_name, args, job_id, e)
|
self._handle_callback_exception(cr, uid, model_name, method_name, args, job_id, e)
|
||||||
|
|
||||||
def _process_job(self, job_cr, job, cron_cr):
|
def _process_job(self, job_cr, job, cron_cr):
|
||||||
|
|
Loading…
Reference in New Issue