diff --git a/aviso-server/monitoring/aviso_monitoring/reporter/aviso_auth_reporter.py b/aviso-server/monitoring/aviso_monitoring/reporter/aviso_auth_reporter.py index c34022b..6526930 100644 --- a/aviso-server/monitoring/aviso_monitoring/reporter/aviso_auth_reporter.py +++ b/aviso-server/monitoring/aviso_monitoring/reporter/aviso_auth_reporter.py @@ -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" diff --git a/aviso-server/monitoring/aviso_monitoring/reporter/aviso_rest_reporter.py b/aviso-server/monitoring/aviso_monitoring/reporter/aviso_rest_reporter.py index 91f2f45..384f59d 100644 --- a/aviso-server/monitoring/aviso_monitoring/reporter/aviso_rest_reporter.py +++ b/aviso-server/monitoring/aviso_monitoring/reporter/aviso_rest_reporter.py @@ -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"