|
@@ -37,7 +37,7 @@ def check_log_file(log_file, error_msg, last_line_file):
|
|
|
for i, line in enumerate(log_lines[last_line_read:]):
|
|
for i, line in enumerate(log_lines[last_line_read:]):
|
|
|
if re.search(error_msg, line):
|
|
if re.search(error_msg, line):
|
|
|
with open(last_line_file, "w") as f:
|
|
with open(last_line_file, "w") as f:
|
|
|
- f.write(str(last_line_read + i + 1))
|
|
|
|
|
|
|
+ f.write(str(last_line_read + i + 3))
|
|
|
return True
|
|
return True
|
|
|
with open(last_line_file, "w") as f:
|
|
with open(last_line_file, "w") as f:
|
|
|
f.write(str(len(log_lines)))
|
|
f.write(str(len(log_lines)))
|