Skip to content

Commit

Permalink
[sd][docker] no self log attribute, use global. (#3314)
Browse files Browse the repository at this point in the history
  • Loading branch information
truthbk authored Apr 20, 2017
1 parent 28ff19b commit a595b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/service_discovery/sd_docker_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self, agentConfig):
self.kubeutil = KubeUtil()
except Exception as ex:
self.kubeutil = None
self.log.error("Couldn't instantiate the kubernetes client, "
log.error("Couldn't instantiate the kubernetes client, "
"subsequent kubernetes calls will fail as well. Error: %s" % str(ex))
self.VAR_MAPPING = {
'host': self._get_host_address,
Expand All @@ -107,7 +107,7 @@ def _make_fetch_state(self):
pod_list = []
if Platform.is_k8s():
if not self.kubeutil:
self.log.error("kubelet client not created, cannot retrieve pod list.")
log.error("kubelet client not created, cannot retrieve pod list.")
else:
try:
pod_list = self.kubeutil.retrieve_pods_list().get('items', [])
Expand Down

0 comments on commit a595b5e

Please sign in to comment.