Skip to content

Commit

Permalink
Add more logging during refresh credentials path (apache#6551)
Browse files Browse the repository at this point in the history
Co-authored-by: Sanjeev Kulkarni <[email protected]>
  • Loading branch information
srkukarni and Sanjeev Kulkarni authored Mar 18, 2020
1 parent b9651a9 commit f24b41c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ private State doAuthentication(AuthData clientData,
log.warn("[{}] Principal cannot be changed during an authentication refresh", remoteAddress);
ctx.close();
} else {
log.info("[{}] Refreshed authentication credentials", remoteAddress);
log.info("[{}] Refreshed authentication credentials for role {}", remoteAddress, authRole);
}
}
}
Expand Down Expand Up @@ -559,7 +559,7 @@ public void refreshAuthenticationCredentials() {
}

ctx.executor().execute(SafeRun.safeRun(() -> {
log.info("[{}] Refreshing authentication credentials", remoteAddress);
log.info("[{}] Refreshing authentication credentials for originalPrincipal {} and authRole {}", remoteAddress, originalPrincipal, this.authRole);

if (!supportsAuthenticationRefresh()) {
log.warn("[{}] Closing connection because client doesn't support auth credentials refresh", remoteAddress);
Expand Down

0 comments on commit f24b41c

Please sign in to comment.