Skip to content
Snippets Groups Projects
Commit 81df4d07 authored by Denis Vermylen's avatar Denis Vermylen Committed by fw-bot
Browse files

[FIX] base: log when a cron job is done

Missing log for analyzing cron issues.

X-original-commit: 9a88fce4
parent 45c6341b
No related branches found
No related tags found
No related merge requests found
......@@ -228,6 +228,7 @@ class ir_cron(models.Model):
try:
registry = odoo.registry(db_name)
registry[cls._name]._process_job(job_cr, job, lock_cr)
_logger.info('Job `%s` done.', job['name'])
except Exception:
_logger.exception('Unexpected exception while processing cron job %r', job)
finally:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment