pretty print stats dict on error

pull/59/merge
jbruce 2022-05-22 11:39:10 -04:00
rodzic 7e17db53fe
commit 71b88a91ac
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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: