mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
Generic log handling: ignore garbled data in log lines, closes https://github.com/opnsense/core/issues/4830
This commit is contained in:
parent
7d0b4b539b
commit
94a8906ef9
@ -38,7 +38,7 @@ def reverse_log_reader(filename, block_size=81920, start_pos=None):
|
||||
:return: generator
|
||||
"""
|
||||
if hasattr(filename, 'read') is False:
|
||||
input_stream = open(filename, 'rU')
|
||||
input_stream = open(filename, 'r', errors='replace')
|
||||
else:
|
||||
input_stream = filename
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user