Skip to content

Allow logParser to handle decoding errors without crashing

Spyros Argyropoulos requested to merge fixParser2 into master

Changes introduced

  • read log file with file=open(opts.INPUT_FILE,"r",errors="replace") so that unicode errors are ignored
  • only read log file once and pass its contents to the generator check functions, instead of opening the log file multiple times

Tests

@nishu said it works with the file failing before due to ascii decoding errors. Also tested with a local file and I see no issues

Issues resolved

Closes #

Edited by Spyros Argyropoulos

Merge request reports