]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2023 08:38:54 +0000 (10:38 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2023 08:38:54 +0000 (10:38 +0200)
- fixed logger message

fba/fba.py
fba/instances.py

index 7f4853daaee98b21c82ee874c902b85729826326..a34690f8c07905611913dc64833d6ec2d8b55b72 100644 (file)
@@ -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):
index 0b8dfeb0d76db8fa2f8b837d6c9985c5e201bb11..c55cb60165ddbb627b664fe7967996e38db32949 100644 (file)
@@ -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):