From: Roland Häder Date: Fri, 9 Jun 2023 08:38:54 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=434855d0ceb92dad9b00aba14247ed71afc12f6c;p=fba.git Continued: - fixed logger message --- diff --git a/fba/fba.py b/fba/fba.py index 7f4853d..a34690f 100644 --- a/fba/fba.py +++ b/fba/fba.py @@ -315,7 +315,7 @@ def log_error(domain: str, response: requests.models.Response): try: # DEBUG: print("DEBUG: BEFORE response[]:", type(response)) if isinstance(response, BaseException) or isinstance(response, json.decoder.JSONDecodeError): - response = str(response) + response = f"response[{type(response)}]='{str(response)}'" # DEBUG: print("DEBUG: AFTER response[]:", type(response)) if isinstance(response, str): diff --git a/fba/instances.py b/fba/instances.py index 0b8dfeb..c55cb60 100644 --- a/fba/instances.py +++ b/fba/instances.py @@ -268,7 +268,7 @@ def update_last_error(domain: str, response: requests.models.Response): # DEBUG: print("DEBUG: BEFORE response[]:", type(response)) if isinstance(response, BaseException) or isinstance(response, json.decoder.JSONDecodeError): - response = f"{type}:str(response)" + response = f"response[{type(response)}]='{str(response)}'" # DEBUG: print("DEBUG: AFTER response[]:", type(response)) if isinstance(response, str):