mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-16 09:10:35 +03:00
eddn: Tweak the extra EDDN failed message logging format.
It's more readable with \n between each part, and added a prefix.
This commit is contained in:
parent
e693af1283
commit
5d612822da
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user