From 71b88a91ace2161475c4aebb7cae56e40c0ccadf Mon Sep 17 00:00:00 2001 From: jbruce Date: Sun, 22 May 2022 11:39:10 -0400 Subject: [PATCH] pretty print stats dict on error --- watcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher.py b/watcher.py index a4d3f44..c78ee38 100755 --- a/watcher.py +++ b/watcher.py @@ -44,7 +44,7 @@ if __name__ == "__main__": print ("temp out of whack") if bad_checks >= bad_check_limit: print("ERR sending alert") - msg = "error kiln needs help. %s" % stats + msg = "error kiln needs help. %s" % json.dumps(stats,indent=2, sort_keys=True) send_alert(msg) bad_checks = 0 else: