added sane check for line lenght

This commit is contained in:
George Pochiscan 2023-05-26 12:24:19 +03:00
parent b3a43a96b1
commit c26de603bb
1 changed files with 11 additions and 9 deletions

View File

@ -26,6 +26,8 @@ def parse_informix_transactions(info):
entry = {}
parsed.setdefault(instance, [])
parsed[instance].append(entry)
###in some cases, for some transaction lines there is no info, only a timestamp that should be ignored
if len(line) > 2:
if "C" in line[2]:
entry.setdefault("current_log_id", line[3])
elif entry is not None: