Commit c479a713 authored by Rafael Monnerat's avatar Rafael Monnerat

promise/check_error_on_apache_log: Skip if log is not there anymore.

parent 67777da8
......@@ -12,6 +12,10 @@ def test(log_file, maximum_delay):
network_is_unreacheable = 0
timeout = 0
parsing_failure = 0
if not os.path.exists(log_file):
# file don't exist, nothing to check
return "OK"
with open(log_file) as f:
f.seek(0, 2)
......
Markdown is supported
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