]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
swap log statements to go to dev_log
authorAlfredo Deza <adeza@redhat.com>
Mon, 30 Mar 2015 16:34:32 +0000 (12:34 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 30 Mar 2015 16:34:32 +0000 (12:34 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
radosgw_agent/sync.py

index 39797eda4c7e318178be9013da2a66cfe19a6e4b..6d40063a371d160fdb06754a8a859794b925eba2 100644 (file)
@@ -4,10 +4,12 @@ import time
 
 from radosgw_agent import worker
 from radosgw_agent import client
+from radosgw_agent.util import get_dev_logger
 from radosgw_agent.exceptions import NotFound, HttpError
 
 
 log = logging.getLogger(__name__)
+dev_log = get_dev_logger(__name__)
 
 # the replica log api only supports one entry, and updating it
 # requires sending a daemon id that matches the existing one. This
@@ -179,9 +181,9 @@ class IncrementalSyncer(Syncer):
         marker = bound['marker']
         retries = bound['retries']
 
-        log.debug('oldest marker and time for shard %d are: %r %r',
-                  shard_num, marker, bound['oldest_time'])
-        log.debug('%d items to retrie are: %r', len(retries), retries)
+        dev_log.debug('oldest marker and time for shard %d are: %r %r',
+                      shard_num, marker, bound['oldest_time'])
+        dev_log.debug('%d items to retry are: %r', len(retries), retries)
 
         return marker, retries