]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
use the new dev_logger for some shard sync items
authorAlfredo Deza <adeza@redhat.com>
Mon, 30 Mar 2015 12:58:07 +0000 (08:58 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 30 Mar 2015 12:58:07 +0000 (08:58 -0400)
radosgw_agent/worker.py

index 30a5356f90b379038bb7a7f92eeb183a1131c049..767419b045fc0bbc64ea9e0bcb65e500ae4d133c 100644 (file)
@@ -8,11 +8,12 @@ import time
 
 from radosgw_agent import client
 from radosgw_agent import lock
-from radosgw_agent.util import obj as obj_
+from radosgw_agent.util import obj as obj_, get_dev_logger
 from radosgw_agent.exceptions import SkipShard, SyncError, SyncTimedOut, SyncFailed, NotFound, BucketEmpty
 from radosgw_agent.constants import DEFAULT_TIME, RESULT_SUCCESS, RESULT_ERROR
 
 log = logging.getLogger(__name__)
+dev_log = get_dev_logger(__name__)
 
 
 class Worker(multiprocessing.Process):
@@ -179,7 +180,7 @@ class IncrementalMixin(object):
         while True:
             item = self.work_queue.get()
             if item is None:
-                log.info('process %s is done. Exiting', self.ident)
+                dev_log.info('process %s is done. Exiting', self.ident)
                 break
 
             shard_num, (log_entries, retries) = item