Closed padamstx closed 2 weeks ago
Temporarily changed this PR to draft status while I'm working on adding the redact secrets function and simplifying the testcase changes I original made in this PR.
@dpopp07 @pyrooka, I've updated the PR to include a new logging interceptor (HttpLogger) which mimics the behavior of the okhttp3 HttpLoggingInterceptor class, except that it redacts secrets within the debug messages that it logs.
I've also made it easier to enable debug logging... The easiest way to do this while running tests is like this (in case you wanted to try it out):
cd <project-root>
mvn test -Dtest=<testclassname> -Djava.util.logging.config.file=debug-logging.properties
e.g.
mvn test -Dtest=ContainerAuthenticatorTest -Djava.util.logging.config.file=debug-logging.properties
(I added debug-logging.properties to the project in this PR).
:tada: This PR is included in version 9.21.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
This commit adds some debug logging in various components, and also modifies some tests so that it's easy to enable debug logging when running individual sets of tests.