]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
worker bound operations should also go to dev_log
authorAlfredo Deza <adeza@redhat.com>
Mon, 30 Mar 2015 16:37:23 +0000 (12:37 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 30 Mar 2015 16:37:23 +0000 (12:37 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
radosgw_agent/client.py

index 2677b5b19cee13b6f809b345b52878915336577a..e55d1fa6302ab0c15cfc86da392e8d5a701defc3 100644 (file)
@@ -13,10 +13,12 @@ from boto.s3.connection import S3Connection
 from radosgw_agent import request as aws_request
 from radosgw_agent import config
 from radosgw_agent import exceptions as exc
+from radosgw_agent.util import get_dev_logger
 from radosgw_agent.constants import DEFAULT_TIME
 from radosgw_agent.exceptions import NetworkError
 
 log = logging.getLogger(__name__)
+dev_log = get_dev_logger(__name__)
 
 
 class Endpoint(object):
@@ -453,10 +455,10 @@ def get_worker_bound(connection, type_, id_):
                 },
             special_first_param='bounds',
             )
-        boto.log.debug('get_worker_bound returned: %r', out)
+        dev_log.debug('get_worker_bound returned: %r', out)
     except exc.NotFound:
-        log.debug('no worker bound found for bucket instance "%s"',
-                  id_)
+        dev_log.debug('no worker bound found for bucket instance "%s"',
+                      id_)
         # if no worker bounds have been set, start from the beginning
         # returning fallback, default values
         return dict(