Skip to content

Commit ba67445

Browse files
committed
Added comment explaning multi-line log processing
1 parent c641aec commit ba67445

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nvidia_resiliency_ext/shared_utils/log_node_local_tmp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ def _process_message_file(self, msg_file: str):
368368
return
369369

370370
# Process each line
371+
# Multi-line logs (e.g., tracebacks) have a single header line (matches log_pattern)
372+
# followed by one or more continuation lines. A non-header line is treated as a
373+
# continuation of the previous record, and the entire block is collapsed into a log message.
371374
log_msg_q = queue.SimpleQueue()
372375
old_log_msg: LogMessage = None
373376
for line in lines:

0 commit comments

Comments
 (0)