From bc3e72726eb74203e9e97d5cdfc7051196870784 Mon Sep 17 00:00:00 2001 From: Marcin Jachymiak Date: Mon, 9 Mar 2020 16:06:15 -0400 Subject: [PATCH] Set force_notify in log check error cases --- setup-scripts/log-checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup-scripts/log-checker.py b/setup-scripts/log-checker.py index c15f527a..15ee1bed 100755 --- a/setup-scripts/log-checker.py +++ b/setup-scripts/log-checker.py @@ -54,13 +54,13 @@ async def check_journal(): std_out, std_err = proc.communicate() if len(std_err) > 0: - await send_msg(client, "Error reading journalctl output: {}".format(std_err)) + await send_msg(client, "Error reading journalctl output: {}".format(std_err), force_notify=True) return # If there are any critical errors. upload the whole log file. if "Critical" 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)) + await send_msg(client, "Critical error found in log!", file=discord.File(io.BytesIO(std_out.encode()), filename=upload_name), force_notify=True) return # No critical errors, return a heartbeat type message.