Skip to content

Commit 6ecc98e

Browse files
authored
Merge pull request #35899 from vespa-engine/arnej/locale-zookeeper-server
Use Text.format in ZooKeeper server
2 parents 0c679aa + fde7e60 commit 6ecc98e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

zookeeper-server/zookeeper-server/src/main/java/org/apache/zookeeper/server/VespaNettyServerCnxnFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
22
package org.apache.zookeeper.server;
33

4+
import com.yahoo.text.Text;
45
import com.yahoo.vespa.zookeeper.Configurator;
56

67
import java.io.IOException;
@@ -27,12 +28,12 @@ public VespaNettyServerCnxnFactory() {
2728
super();
2829
this.isSecure = Configurator.VespaNettyServerCnxnFactory_isSecure;
2930
boolean portUnificationEnabled = Boolean.getBoolean(NettyServerCnxnFactory.PORT_UNIFICATION_KEY);
30-
log.info(String.format(Locale.ROOT, "For %h: isSecure=%b, portUnification=%b", this, isSecure, portUnificationEnabled));
31+
log.info(Text.format("For %h: isSecure=%b, portUnification=%b", this, isSecure, portUnificationEnabled));
3132
}
3233

3334
@Override
3435
public void configure(InetSocketAddress addr, int maxClientCnxns, int backlog, boolean secure) throws IOException {
35-
log.info(String.format(Locale.ROOT, "For %h: configured() invoked with parameter 'secure'=%b, overridden to %b", this, secure, isSecure));
36+
log.info(Text.format("For %h: configured() invoked with parameter 'secure'=%b, overridden to %b", this, secure, isSecure));
3637
super.configure(addr, maxClientCnxns, backlog, isSecure);
3738
}
3839
}

0 commit comments

Comments
 (0)