Skip to content

Commit

Permalink
Merge pull request #59 from bmwcarit/reduce_debug_logs
Browse files Browse the repository at this point in the history
Remove the debug log for reading each dlt message
  • Loading branch information
yen3 authored Jul 5, 2023
2 parents 529fdb1 + 66bb425 commit 011f6d4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dlt/dlt.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,10 +783,11 @@ def _log_message_progress(self):
"""Logs current message for progress information"""
length = os.stat(self.filename).st_size
logger.debug(
"Processed %s messages (%s%% of %sfile), next message is apid %s, ctid %s",
"Processed %s messages (%s%% of %sfile) from %s, next message is apid %s, ctid %s",
self.position,
int(100 * self.file_position / length),
"live " if self.live_run else "",
self.filename,
self.msg.apid,
self.msg.ctid,
)
Expand Down Expand Up @@ -1052,10 +1053,6 @@ def py_dlt_file_main_loop(dlt_reader, limit=None, callback=None):
"""Main loop to read dlt messages from dlt file."""
try:
for msg in dlt_reader:
logger.debug(
"Message from position %d and counter %d: %s", dlt_reader.file_position, dlt_reader.counter, msg
)

# send the message to the callback and check whether we
# need to continue
if callback and not callback(msg):
Expand Down

0 comments on commit 011f6d4

Please sign in to comment.