mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +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:
parent
baac45f5fe
commit
303df05f2c
@ -756,7 +756,7 @@ class Session(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
except requests.ConnectionError as e:
|
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
|
raise ServerConnectionError(f'Unable to connect to endpoint: {capi_endpoint}') from e
|
||||||
|
|
||||||
except (requests.HTTPError, ValueError) as e:
|
except (requests.HTTPError, ValueError) as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user