Closed nacx closed 7 months ago
Not really. default is an actual logging scope, that is used when no other loggers are configured. It could be misleading, yes... We could consider removing that logger to make this more understandable? But probably in another PR
Ok, let's keep track of the default keyword in a separate PR.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: nacx, sergicastro
The full list of commands accepted by this bot can be found here.
The pull request process is described here
This adds the
idp
logger that will log all the calls made to the Identity Provider such as the token endpoint calls. It also adds more information to some of the existing loggers. Currently, there are no means to see what requests are being made as part of the OIDC flow, and troubleshooting the responses from the IdP was challenging. This logger will facilitate better understand the flow.It is important to note that the
idp
logger may expose sensitive information in the logs, such as theclient_secret
or the tokens being issued. Use with care and do not enable it by default. To make it easier to set default log levels and just override some, I've changed a bit the behavior of the logging settings, to allow things like:all:debug,idp:none
. Previously, if theall
logger was set, all the other log levels were ignored. Now, if theall
logger is present, it will be used as the default, then individual loggers will be configured on top.