Skip to content

Commit

Permalink
[Backport 2.x] Change log message with jwtString from INFO to TRACE (o…
Browse files Browse the repository at this point in the history
…pensearch-project#3631)

Backport bd43eef from opensearch-project#3621.

Signed-off-by: pegtrifork <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 515e559 commit 61bf6f0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ private AuthCredentials extractCredentials0(final SecurityRequest request) throw
log.info(e.toString());
throw new OpenSearchSecurityException(e.getMessage(), RestStatus.SERVICE_UNAVAILABLE);
} catch (BadCredentialsException | ParseException e) {
log.info("Extracting JWT token from {} failed", jwtString, e);
if (log.isTraceEnabled()) {
log.trace("Extracting JWT token from {} failed", jwtString, e);
}
return null;
}

Expand Down

0 comments on commit 61bf6f0

Please sign in to comment.