Commit 2949991d authored by Vincent Stehlé's avatar Vincent Stehlé
Browse files print corrupted line number

This is helpful to debug, especially with large SCT logs.

Signed-off-by: Vincent Stehlé's avatarVincent Stehlé <>
parent 4730e9a9
......@@ -133,8 +133,8 @@ def ekl_parser (file):
tmp_dict = test_parser(split_test, current)
n += 1
except Exception:
print(f"Line {i+1}:", split_line)
sys.exit("your log may be corrupted")
logging.error(f"Unparsed line {i} `{line}'")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment