Change text to be written to alerts.log

This commit is contained in:
jowj 2018-12-01 19:23:19 -06:00
parent b1d54b3bcc
commit 0f9952a519

View File

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