Skip to content

Commit

Permalink
#88 reduce logging level of auth failures from WARN to INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
ylexus committed Oct 19, 2024
1 parent e6eaa71 commit 92250ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private Request authFromRequest(Request request) {

final String authorizationHeader = request.header(header);
if (authorizationHeader != null && authorizationHeader.startsWith("Basic")) {
Platform.get().log("Previous basic authentication failed, returning null", Platform.WARN, null);
Platform.get().log("Previous basic authentication failed, returning null", Platform.INFO, null);
return null;
}
String authValue = okhttp3.Credentials.basic(credentials.getUserName(), credentials.getPassword(), credentialCharset);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private Request authenticateWithState(Route route, Request request, Map<String,

if (havePreviousDigestAuthorizationAndShouldAbort(request, nonce, isStale)) {
// prevent infinite loops when the password is wrong
Platform.get().log("Previous digest authentication with same nonce failed, returning null", Platform.WARN,
Platform.get().log("Previous digest authentication with same nonce failed, returning null", Platform.INFO,
null);
return null;
}
Expand Down

0 comments on commit 92250ba

Please sign in to comment.