@@ -170,7 +170,7 @@ public ClusterDescription getDescription() {
170
170
if (!selectionFailureLogged ) {
171
171
if (LOGGER .isInfoEnabled ()) {
172
172
if (settings .getServerSelectionTimeout (MILLISECONDS ) < 0 ) {
173
- LOGGER .info (format ( "Cluster description not yet available. Waiting indefinitely." ) );
173
+ LOGGER .info ("Cluster description not yet available. Waiting indefinitely." );
174
174
} else {
175
175
LOGGER .info (format ("Cluster description not yet available. Waiting for %d ms before timing out" ,
176
176
settings .getServerSelectionTimeout (MILLISECONDS )));
@@ -267,7 +267,7 @@ private boolean handleServerSelectionRequest(final ServerSelectionRequest reques
267
267
request .phase = currentPhase ;
268
268
if (!description .isCompatibleWithDriver ()) {
269
269
if (LOGGER .isTraceEnabled ()) {
270
- LOGGER .trace (String . format ( "Asynchronously failed server selection due to driver incompatibility with server" ) );
270
+ LOGGER .trace ("Asynchronously failed server selection due to driver incompatibility with server" );
271
271
}
272
272
request .onResult (null , createIncompatibleException (description ));
273
273
return true ;
@@ -288,7 +288,7 @@ private boolean handleServerSelectionRequest(final ServerSelectionRequest reques
288
288
289
289
if (request .timedOut ()) {
290
290
if (LOGGER .isTraceEnabled ()) {
291
- LOGGER .trace (String . format ( "Asynchronously failed server selection after timeout" ) );
291
+ LOGGER .trace ("Asynchronously failed server selection after timeout" );
292
292
}
293
293
request .onResult (null , createTimeoutException (request .originalSelector , description ));
294
294
return true ;
0 commit comments