Skip to content

Commit

Permalink
[INLONG-11442][Audit] Optimize the exception log of Audit SDK (#11443)
Browse files Browse the repository at this point in the history
  • Loading branch information
doleyzi authored Oct 31, 2024
1 parent e49d69e commit 099e2c4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,16 @@ public void closeSocket() {

public boolean checkSocket() {
if (socket.isClosed() || !socket.isConnected()) {
InetSocketAddress inetSocketAddress = null;
try {
InetSocketAddress inetSocketAddress = ProxyManager.getInstance().getInetSocketAddress();
inetSocketAddress = ProxyManager.getInstance().getInetSocketAddress();
if (inetSocketAddress == null) {
LOGGER.error("Audit proxy address is null!");
return false;
}
reconnect(inetSocketAddress, auditConfig.getSocketTimeout());
} catch (IOException exception) {
LOGGER.error("Connect to audit proxy {} has exception!", socket.getInetAddress(), exception);
LOGGER.error("Connect to audit proxy {} has exception!", inetSocketAddress, exception);
return false;
}
}
Expand Down

0 comments on commit 099e2c4

Please sign in to comment.