diff --git a/main.py b/main.py index cc8792a..b6af37b 100644 --- a/main.py +++ b/main.py @@ -118,9 +118,8 @@ else: else: errorcode = f"{time} - Unknow ERROR Code {str(e.stderr)}" + request("report/errorlog",{"datum": time,"hostname":hostname,"samaccountname":user,"errorcode":errorcode}) - with open("log.txt", "a") as datei: - datei.writelines(f"{errorcode}" + "\n") ## WRITE TO ERRORLOG # # # pushover_send(errorcode, hostname) ## SEND ERROR LOG TO PUSHOVER # # # # while True: