Skip to content

Commit

Permalink
unnecessary info log is removed, otherwise same log would be written …
Browse files Browse the repository at this point in the history
…over and over
  • Loading branch information
sametd committed Dec 20, 2023
1 parent 7675c3c commit 9478e9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ def __init__(self, *args, **kwargs):

def metric(self):
namespace = self.get_k8s_pod_namespace()
if namespace:
logger.info(f"The pod is running in the '{namespace}' namespace.")
else:
if not namespace:
logger.warning("Could not determine the pod's namespace.")
namespace = "aviso"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ def __init__(self, *args, **kwargs):

def metric(self):
namespace = self.get_k8s_pod_namespace()
if namespace:
logger.info(f"The pod is running in the '{namespace}' namespace.")
else:
if not namespace:
logger.warning("Could not determine the pod's namespace.")
namespace = "aviso"

Expand Down

0 comments on commit 9478e9f

Please sign in to comment.