More debug info

This commit is contained in:
Simon 2018-08-23 11:59:13 -04:00
parent 8dc8627f78
commit d42be56dee

View File

@ -63,7 +63,7 @@ class TaskManager:
} }
r = requests.post(config.SERVER_URL + "/task/upload", data=payload, files=files) r = requests.post(config.SERVER_URL + "/task/upload", data=payload, files=files)
logger.info("RESPONSE: " + r.text) logger.info("RESPONSE: " + r.text + "<" + str(r.status_code) + ">")
except Exception as e: except Exception as e:
logger.error("Exception while sending file_list chunk: " + str(e)) logger.error("Exception while sending file_list chunk: " + str(e))
pass pass
@ -75,7 +75,7 @@ class TaskManager:
} }
r = requests.post(config.SERVER_URL + "/task/complete", data=payload) r = requests.post(config.SERVER_URL + "/task/complete", data=payload)
logger.info("RESPONSE: " + r.text) logger.info("RESPONSE: " + r.text + "<" + str(r.status_code) + ">")
if os.path.exists(filename): if os.path.exists(filename):
os.remove(filename) os.remove(filename)