Skip to content

Commit 3446aae

Browse files
committed
Fix ControlConnection log message
Log message notifying of closing the previous ControlConnection's channel wrongly mentions current channel. Switch it to the previous instead.
1 parent 34beedd commit 3446aae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/java/com/datastax/oss/driver/internal/core/control/ControlConnection.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,9 @@ private void connect(
433433
// We were reconnecting: make sure previous channel gets closed (it may
434434
// still be open if reconnection was forced)
435435
LOG.debug(
436-
"[{}] Forcefully closing previous channel {}", logPrefix, channel);
436+
"[{}] Forcefully closing previous channel {}",
437+
logPrefix,
438+
previousChannel);
437439
previousChannel.forceClose();
438440
}
439441
context.getEventBus().fire(ChannelEvent.channelOpened(node));

0 commit comments

Comments
 (0)