Repository navigation
What's Changed
- Log through an SDK logger that applies the log settings (#163)
Fixes
- The client's startup log line no longer contains the API key. It carries the API and PDP URLs without credentials.
log.levelandlog.labelare now applied. Every SDK log record goes through the SDK's logger, which replaces the API key of every client in the process with[REDACTED], as given and in lower case.- The API key is also replaced in the exceptions the SDK raises: their messages, the error bodies in them, and the aiohttp response or error they carry, including the exceptions chained under that error. If the key can't be removed from an aiohttp error,
PermitConnectionErrorcarries a plainaiohttp.ClientErrorin its place. - The README lists where the key is not replaced, such as request URLs and the values a traceback shows for each frame.
Behaviour changes
With log={"enable": True} and nothing else, the defaults now apply:
- DEBUG records are dropped (the default level is
info). - Each SDK message starts with
[Permit].
Set level="debug" or label="" to keep the old output.
Full Changelog: v3.0.0...v3.0.1