mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Input's ascii reader is now more resilient.
By default, the ASCII reader does not fail on errors anymore. If there is a problem parsing a line, a reporter warning is written and parsing continues. If the file is missing or can't be read, the input thread just tries again on the next heartbeat. Options have been added to recreate the previous behavior... const InputAscii::fail_on_invalid_lines: bool; and const InputAscii::fail_on_file_problem: bool; They are both set to `F` by default which makes the input readers resilient to failure.
This commit is contained in:
parent
2b15ec1069
commit
75744d22bc
8 changed files with 127 additions and 32 deletions
|
@ -0,0 +1,4 @@
|
|||
warning: ../does-not-exist.dat/Input::READER_ASCII: Init: cannot open ../does-not-exist.dat
|
||||
error: ../does-not-exist.dat/Input::READER_ASCII: Init: cannot open ../does-not-exist.dat
|
||||
error: ../does-not-exist.dat/Input::READER_ASCII: terminating thread
|
||||
received termination signal
|
|
@ -0,0 +1,2 @@
|
|||
now it does
|
||||
and more!
|
Loading…
Add table
Add a link
Reference in a new issue