diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-02-02 00:31:00 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-02-02 00:31:00 +0200 |
commit | 8728abaddcf74d5bdcff606d128f289afa4a3bcd (patch) | |
tree | 779f05b2106202e86aa02dacc472d0625f4282e9 /rhodecode/lib/celerylib/__init__.py | |
parent | 7249944286815786d518e27dd1b8d6aca39db394 (diff) |
garden
- unified logging formatting to use only %
--HG--
branch : beta
extra : rebase_source : 3e21b92e6102c14b6d395db12fbb62a753ca7373
Diffstat (limited to 'rhodecode/lib/celerylib/__init__.py')
-rw-r--r-- | rhodecode/lib/celerylib/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rhodecode/lib/celerylib/__init__.py b/rhodecode/lib/celerylib/__init__.py index 215e5bd7..b9346fe1 100644 --- a/rhodecode/lib/celerylib/__init__.py +++ b/rhodecode/lib/celerylib/__init__.py @@ -62,7 +62,7 @@ def run_task(task, *args, **kwargs): if CELERY_ON: try: t = task.apply_async(args=args, kwargs=kwargs) - log.info('running task %s:%s', t.task_id, task) + log.info('running task %s:%s' % (t.task_id, task)) return t except socket.error, e: @@ -75,7 +75,7 @@ def run_task(task, *args, **kwargs): except Exception, e: log.error(traceback.format_exc()) - log.debug('executing task %s in sync mode', task) + log.debug('executing task %s in sync mode' % task) return ResultWrapper(task(*args, **kwargs)) @@ -95,7 +95,7 @@ def locked_task(func): lockkey = __get_lockkey(func, *fargs, **fkwargs) lockkey_path = config['here'] - log.info('running task with lockkey %s', lockkey) + log.info('running task with lockkey %s' % lockkey) try: l = DaemonLock(file_=jn(lockkey_path, lockkey)) ret = func(*fargs, **fkwargs) |