Commit 64196a7
committed
util/log: skip malformed log entries while reading from file
Previously, readAllEntriesFromFile was returning an error if the log file
contains the malformed log entry. The malformed log entry primarily could be
the unexpected panic log. This would result in failure in fetching the logs
from file. This was inadequate because single log line can cause failure in
reading rest of the logs which are with valid format. To address this, this
patch skips the malformed log entries during decode and only valid log lines
are returned.
Fixes: #149866
Informs: #151493
Release note: None1 parent c75f1e2 commit 64196a7
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
432 | 439 | | |
433 | 440 | | |
434 | 441 | | |
| |||
0 commit comments