Skip to content

Commit

Permalink
reduce log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
sholdee committed Jun 27, 2024
1 parent 9ada761 commit 450f226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adguard_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def on_created(self, event):

def on_modified(self, event):
if event.src_path == self.log_file_path:
logger.info(f"Log file modified: {self.log_file_path}")
logger.debug(f"Log file modified: {self.log_file_path}")
self.process_new_lines()

def process_new_lines(self):
Expand All @@ -216,7 +216,7 @@ def process_new_lines(self):
with open(self.log_file_path, 'r') as log_file:
log_file.seek(self.last_position)
lines = log_file.readlines()
logger.info(f"Processing {len(lines)} new lines")
logger.debug(f"Processing {len(lines)} new lines")
for line in lines:
if line.strip():
try:
Expand Down

0 comments on commit 450f226

Please sign in to comment.