Skip to content

Commit 1f6a58e

Browse files
committed
Adjust debug log in ControlConnection
Log the channel instead of the node, as in ChannelPool. This shows the local port, which can be useful when debugging.
1 parent c6834ac commit 1f6a58e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ private void connect(
426426
channel.forceClose();
427427
connect(nodes, errors, onSuccess, onFailure);
428428
} else {
429-
LOG.debug("[{}] Connection established to {}", logPrefix, node);
429+
LOG.debug("[{}] New channel opened {}", logPrefix, channel);
430430
// Make sure previous channel gets closed (it may still be open if
431431
// reconnection was forced)
432432
DriverChannel previousChannel = ControlConnection.this.channel;

0 commit comments

Comments
 (0)