Skip to content

Commit

Permalink
Clean up debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
UTXOnly committed Jan 10, 2025
1 parent 82b9236 commit 4d874de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 4d874de

Please sign in to comment.