Skip to content

Commit 49048a6

Browse files
committed
added log line when IP changes
1 parent 4276127 commit 49048a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/com/mongodb/ReplicaSetStatus.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ private void updateAddr() {
132132
// address changed, need to use new ports
133133
_port = new DBPort(_addr, null, _mongoOptions);
134134
_mongo.getConnector().updatePortPool(_addr);
135+
_logger.log(Level.INFO, "Address of host " + _addr.toString() + " changed to " + _addr.getSocketAddress().toString());
135136
}
136137
} catch (UnknownHostException ex) {
137138
_logger.log(Level.WARNING, null, ex);

0 commit comments

Comments
 (0)