diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-09-07 12:10:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-09-07 12:10:44 +0200 |
commit | f73d5dc9f7df05ca5ff62c118233ce91bc4361a9 (patch) | |
tree | 49d1bce2a15674b00e38587df19babb1ba755e28 /zkfacade | |
parent | 76168f7102cde2d2fe28e12427e41ff60c8ffe07 (diff) |
Reduce log levels
Diffstat (limited to 'zkfacade')
-rw-r--r-- | zkfacade/src/main/java/com/yahoo/vespa/zookeeper/RestrictedServerCnxnFactory.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zkfacade/src/main/java/com/yahoo/vespa/zookeeper/RestrictedServerCnxnFactory.java b/zkfacade/src/main/java/com/yahoo/vespa/zookeeper/RestrictedServerCnxnFactory.java index d8561c67767..3df532461dc 100644 --- a/zkfacade/src/main/java/com/yahoo/vespa/zookeeper/RestrictedServerCnxnFactory.java +++ b/zkfacade/src/main/java/com/yahoo/vespa/zookeeper/RestrictedServerCnxnFactory.java @@ -27,11 +27,11 @@ public class RestrictedServerCnxnFactory extends NIOServerCnxnFactory { @Override protected NIOServerCnxn createConnection(SocketChannel socket, SelectionKey selection) throws IOException { - String remoteHost = ((InetSocketAddress)socket.getRemoteAddress()).getHostName(); // TODO: Move this line down + String remoteHost = ((InetSocketAddress)socket.getRemoteAddress()).getHostName(); String zookeeperClients = System.getProperty(ZooKeeperServer.ZOOKEEPER_VESPA_CLIENTS_PROPERTY); if (zookeeperClients == null || zookeeperClients.isEmpty()) { - log.info("Allowing connection to ZooKeeper from " + remoteHost + ", as " + ZooKeeperServer.ZOOKEEPER_VESPA_CLIENTS_PROPERTY + " is not set"); // TODO: Remove this line + log.fine("Allowing connection to ZooKeeper from " + remoteHost + ", as " + ZooKeeperServer.ZOOKEEPER_VESPA_CLIENTS_PROPERTY + " is not set"); return super.createConnection(socket, selection); // client checking is not activated } @@ -39,10 +39,10 @@ public class RestrictedServerCnxnFactory extends NIOServerCnxnFactory { if ( ! remoteHost.equals("localhost") && ! zooKeeperClients.contains(remoteHost)) { String errorMessage = "Rejecting connection to ZooKeeper from " + remoteHost + ": This cluster only allow connection from hosts in: " + zooKeeperClients; - log.warning(errorMessage); + log.info(errorMessage); throw new IllegalArgumentException(errorMessage); } - log.info("Allowing connection to ZooKeeper from " + remoteHost + ", as it is in " + zookeeperClients); // TODO: Remove this line + log.fine("Allowing connection to ZooKeeper from " + remoteHost + ", as it is in " + zookeeperClients); return super.createConnection(socket, selection); } |