1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 08:40:34 +03:00

CAPI: Adjust 'requests.ConnectionError' logging

It was specifically implying DNS resolution issues, but this is far more
general than that.
This commit is contained in:
Athanasius 2021-08-25 14:57:08 +01:00
parent baac45f5fe
commit 303df05f2c
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -756,7 +756,7 @@ class Session(object):
)
except requests.ConnectionError as e:
logger.warning(f'Unable to resolve name for CAPI: {e} (for request: {capi_endpoint})')
logger.warning(f'Request {capi_endpoint}: {e}')
raise ServerConnectionError(f'Unable to connect to endpoint: {capi_endpoint}') from e
except (requests.HTTPError, ValueError) as e: