From 4d874de18775794a2bbb0ba6fe746afc9aad2623 Mon Sep 17 00:00:00 2001 From: UTXOnly Date: Fri, 10 Jan 2025 10:19:08 -0500 Subject: [PATCH] Clean up debug logs --- .../datadog_checks/base/checks/openmetrics/v2/base.py | 7 ++----- .../datadog_checks/base/checks/openmetrics/v2/scraper.py | 2 -- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/datadog_checks_base/datadog_checks/base/checks/openmetrics/v2/base.py b/datadog_checks_base/datadog_checks/base/checks/openmetrics/v2/base.py index 4f48f10138e50..43796269b9a1f 100644 --- a/datadog_checks_base/datadog_checks/base/checks/openmetrics/v2/base.py +++ b/datadog_checks_base/datadog_checks/base/checks/openmetrics/v2/base.py @@ -110,13 +110,10 @@ def get_default_config(self): return {} def refresh_scrapers(self): - self.log.debug("Scrapersss is : %s", self.scrapers) for scraper, config in self.scrapers.items(): - self.log.debug("Scraper is : %s, config is %s, tags are: %s", scraper, config.config, config.tags) - # config.tags = [] - # del config.tags + config.tags = [] + - # pass @contextmanager def adopt_namespace(self, namespace): diff --git a/datadog_checks_base/datadog_checks/base/checks/openmetrics/v2/scraper.py b/datadog_checks_base/datadog_checks/base/checks/openmetrics/v2/scraper.py index 642d74e018692..cb5d259883d8f 100644 --- a/datadog_checks_base/datadog_checks/base/checks/openmetrics/v2/scraper.py +++ b/datadog_checks_base/datadog_checks/base/checks/openmetrics/v2/scraper.py @@ -239,7 +239,6 @@ def scrape(self): runtime_data = {'flush_first_value': self.flush_first_value, 'static_tags': self.static_tags} for metric in self.consume_metrics(runtime_data): - # self.log.debug("Scrape metric name is: %s", metric) transformer = self.metric_transformer.get(metric) if transformer is None: continue @@ -292,7 +291,6 @@ def parse_metrics(self): # side effect inside the `line_streamer` generator, we need to consume the first line in order to # trigger that side effect. try: - # self.log.debug("Line streamer gen item is : %s", line_streamer) line_streamer = chain([next(line_streamer)], line_streamer) except StopIteration: # If line_streamer is an empty iterator, next(line_streamer) fails.