This is currently being done explicitly and manually. For example:
# numista.py Numista()._api_client()
log_headers = {k: v for k, v in headers.items()}
log_headers['Numista-API-Key'] = f"***{log_headers['Numista-API-Key'][-4:]}"
if log_headers.get("Authorization", None):
log_headers['Authorization'] = f"Bearer ***{log_headers['Authorization'][-4:]}"
This is currently being done explicitly and manually. For example:
This can be done dynamically by the logger More info: https://relaxdiego.com/2014/07/logging-in-python.html