From a90dc717c6a26edb81667dc3c72401129194c370 Mon Sep 17 00:00:00 2001 From: Marcin Jachymiak Date: Tue, 24 Mar 2020 10:23:09 -0400 Subject: [PATCH] Check logs for panics --- setup-scripts/log-checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-scripts/log-checker.py b/setup-scripts/log-checker.py index 2fd92a28..e8aee471 100755 --- a/setup-scripts/log-checker.py +++ b/setup-scripts/log-checker.py @@ -68,7 +68,7 @@ async def check_journal(): return # If there are any critical errors. upload the whole log file. - if "Critical" in std_out: + if "Critical" or "panic" in std_out: upload_name = "{}-{}-{}-{}-{}:{}:{}.log".format(service_name, time.year, time.month, time.day, time.hour, time.minute, time.second) await send_msg(client, "Critical error found in log!", file=discord.File(io.BytesIO(std_out.encode()), filename=upload_name), force_notify=True) return