EDDN: Log the message we tried to send if it fails.

This commit is contained in:
Athanasius committed 2020-09-08 18:51:17 +01:00
1 parent 09add21a1a
commit e693af1283
1 file changed
+1 -1
+1 -1
View File
@@ -143,7 +143,7 @@ class EDDN:
r = self.session.post(self.UPLOAD, data=json.dumps(to_send), timeout=self.TIMEOUT)
if r.status_code != requests.codes.ok:
logger.debug(f':\nStatus\t{r.status_code}URL\t{r.url}Headers\t{r.headers}Content:\n{r.text}')
logger.debug(f':\nStatus\t{r.status_code}URL\t{r.url}Headers\t{r.headers}Content:\n{r.text}\nMsg:\n{msg}\n')
r.raise_for_status()