From a9869383b277a45c73dd93ce5e1c927ae880b3d1 Mon Sep 17 00:00:00 2001 From: bohdan-s Date: Thu, 3 Mar 2022 14:03:16 +1100 Subject: [PATCH] Output more info on PVOutput error --- SunGather/exports/pvoutput.py | 1 + 1 file changed, 1 insertion(+) diff --git a/SunGather/exports/pvoutput.py b/SunGather/exports/pvoutput.py index 035eeb7..8d555a8 100644 --- a/SunGather/exports/pvoutput.py +++ b/SunGather/exports/pvoutput.py @@ -199,6 +199,7 @@ class export_pvoutput(object): if response.status_code != requests.codes.ok: logging.error(f"PVOutput: Upload Failed; {str(response.status_code)} Message; {str(response.text)}") + logging.error("PVOutput: Request; " + self.url_addbatchstatus + ", " + str(self.headers) + " : " + str(payload)) else: self.batch_data = [] self.last_publish = time.time()