From 5d612822da8978a9b6f03197649e2233dc196902 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 9 Sep 2020 13:51:15 +0100 Subject: [PATCH] eddn: Tweak the extra EDDN failed message logging format. It's more readable with \n between each part, and added a prefix. --- plugins/eddn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index a0713e92..3526085e 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -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}\nMsg:\n{msg}\n') + logger.debug(f'Status from POST wasn\'t OK:\nStatus\t{r.status_code}\nURL\t{r.url}\nHeaders\t{r.headers}\nContent:\n{r.text}\nMsg:\n{msg}') r.raise_for_status()