From e972052a9375a7333c4ddbf32865cdc127c98d62 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Tue, 24 Jan 2012 12:07:30 +0100 Subject: [PATCH] [IMP] openerp.cron: _logger with fully qualified module name. bzr revid: vmt@openerp.com-20120124110730-5z49bmykozesrv8e --- openerp/cron.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openerp/cron.py b/openerp/cron.py index d24300b7f43..7b67877f0fe 100644 --- a/openerp/cron.py +++ b/openerp/cron.py @@ -47,6 +47,8 @@ import time import openerp import tools +_logger = logging.getLogger(__name__) + # Heapq of database wake-ups. Note that 'database wake-up' meaning is in # the context of the cron management. This is not originally about loading # a database, although having the database name in the queue will @@ -84,8 +86,6 @@ _thread_slots = None # A (non re-entrant) lock to protect the above _thread_slots variable. _thread_slots_lock = threading.Lock() -_logger = logging.getLogger('cron') - # Sleep duration limits - must not loop too quickly, but can't sleep too long # either, because a new job might be inserted in ir_cron with a much sooner # execution date than current known ones. We won't see it until we wake!