fix the parsing of log file

assertRaises will generate an ERROR log, and we don't want these
to break the build