improve logging

This commit is contained in:
Usman Nasir
2020-01-29 11:05:47 +05:00
parent b3ce444860
commit 6ef782252c
7 changed files with 11 additions and 6 deletions

View File

@@ -50,6 +50,9 @@ class backupSchedule:
finalData = json.dumps({'randomFile': pathToFile, 'websiteToBeBacked': virtualHost})
r = requests.post("https://localhost:8090/backup/localInitiate", data=finalData, verify=False)
if os.path.exists(ProcessUtilities.debugPath):
logging.CyberCPLogFileWriter.writeToFile(r.text)
data = json.loads(r.text)
tempStoragePath = data['tempStorage']