Skip to content

Commit c3e1c48

Browse files
authored
Replace logging with logger for consistency (#481)
1 parent 9ce49cd commit c3e1c48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ def __init__(
7676
self.ssl_enabled = settings.prometheus_ssl_enabled
7777

7878
if settings.openshift:
79-
logging.info("Openshift flag is set, trying to load token from service account.")
79+
logger.info("Openshift flag is set, trying to load token from service account.")
8080
openshift_token = openshift.load_token()
8181

8282
if openshift_token:
83-
logging.info("Openshift token is loaded successfully.")
83+
logger.info("Openshift token is loaded successfully.")
8484
self.auth_header = self.auth_header or f"Bearer {openshift_token}"
8585
else:
86-
logging.warning("Openshift token is not found, trying to connect without it.")
86+
logger.warning("Openshift token is not found, trying to connect without it.")
8787

8888
self.prometheus_discovery = self.service_discovery(api_client=self.api_client)
8989

0 commit comments

Comments
 (0)