Change text to be written to alerts.log

master
jowj 5 years ago
parent b1d54b3bcc
commit 0f9952a519

@ -47,7 +47,7 @@ while is_on:
for key,value in results[-1].items():
if stateChanged == True:
errorFile = open("/shared/alerts.log", "w")
errorText = key + " is down." + "\n"
errorText = key + value + "\n"
errorFile.write(errorText)
errorFile.close()
time.sleep(60)

Loading…
Cancel
Save