mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-04-19 21:56:54 -04:00
GPI-1341 Fix logging error on _handle_response
This commit is contained in:
@@ -360,7 +360,8 @@ class Connection():
|
||||
|
||||
@staticmethod
|
||||
def _log_error(response, error, sensitive_params):
|
||||
data = anonymise_sensitive_params(error.data, sensitive_params)
|
||||
params = error.data if error.data is not None else {}
|
||||
data = anonymise_sensitive_params(params, sensitive_params)
|
||||
logger.info("Handling error: id=%s, code=%s, description=%s, data=%s",
|
||||
response.id, error.code, error.message, data
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user