From 59bad59cb7cc2d64eb59f659a02813a80b961cf0 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Fri, 28 Aug 2020 16:05:24 +0200 Subject: [PATCH] Make it clear that the uptime data comes from the `uptime` command and not something we're putting together ourselves. --- 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 a020c3d6..2cd2c27c 100755 --- a/setup-scripts/log-checker.py +++ b/setup-scripts/log-checker.py @@ -60,7 +60,7 @@ async def check_load_average(): pattern = "^.*load average: \d*\.\d*, \d*\.\d*, (\d*\.\d*)$" load_av = re.match(pattern, uptime_string).group(1) if float(load_av) > 10: - await send_msg(client, "High system load detected: `{}`".format(uptime_string), force_notify=True) + await send_msg(client, "High system load detected: `uptime: {}`".format(uptime_string), force_notify=True) # check_docker_logs checks the docker logs by filtering on the docker image name async def check_docker_logs():