Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -251,17 +251,21 @@ void doReconnect(List<String> availList, String transactionServiceGroup) {
}
}
if (failedMap.size() > 0) {
// Merge all failed addresses into a single log entry to avoid flooding logs.
// info level: output summary without stack traces
if (LOGGER.isInfoEnabled()) {
LOGGER.error(
LOGGER.info(
"{} can not connect to {} cause:{}",
FrameworkErrorCode.NetConnect.getErrCode(),
failedMap.keySet(),
failedMap.values().stream()
.map(Throwable::getMessage)
.collect(Collectors.toSet()));
} else if (LOGGER.isDebugEnabled()) {
}
// debug level: output detailed stack traces for each failed address
if (LOGGER.isDebugEnabled()) {
failedMap.forEach((key, value) -> {
LOGGER.error(
LOGGER.debug(
"{} can not connect to {} cause:{} trace information:",
FrameworkErrorCode.NetConnect.getErrCode(),
key,
Expand Down