Skip to content

Commit

Permalink
ZOOKEEPER-4879: Fix log of exception (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
luozongle01 authored Nov 27, 2024
1 parent 75f9781 commit 5664ce1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,7 @@ private void processSasl(RequestRecord request, ServerCnxn cnxn, RequestHeader r
}
}
} catch (SaslException e) {
LOG.warn("Client {} failed to SASL authenticate: {}", cnxn.getRemoteSocketAddress(), e);
LOG.warn("Client {} failed to SASL authenticate", cnxn.getRemoteSocketAddress(), e);
if (shouldAllowSaslFailedClientsConnect() && !authHelper.isSaslAuthRequired()) {
LOG.warn("Maintaining client connection despite SASL authentication failure.");
} else {
Expand Down Expand Up @@ -2370,7 +2370,7 @@ public boolean authWriteRequest(Request request) {
try {
request.cnxn.sendResponse(rh, null, null);
} catch (IOException e) {
LOG.error("IOException : {}", e);
LOG.warn("IOException", e);
}
}
}
Expand Down

0 comments on commit 5664ce1

Please sign in to comment.