install log in py

This commit is contained in:
Usman Nasir
2021-03-22 14:49:53 +05:00
parent 0990d755b6
commit 63e506cc1f

View File

@@ -28,5 +28,8 @@ class InstallLog:
"%m.%d.%Y_%H-%M-%S") + "] " + message + "\n")
file.close()
finalData = json.dumps({'ipAddress': InstallLog.ServerIP, "InstallCyberPanelStatus": message})
requests.post(InstallLog.LogURL, data=finalData, verify=False)
try:
finalData = json.dumps({'ipAddress': InstallLog.ServerIP, "InstallCyberPanelStatus": message})
requests.post(InstallLog.LogURL, data=finalData, verify=False)
except:
pass