changeset 2175:be18f6865501 ipc

Lower log-level for less important messages.
author Elliott Baron <ebaron@redhat.com>
date Tue, 09 Feb 2016 15:31:40 -0500
parents de14ec54e44a
children 4bae3753a33d
files agent/ipc/unix-socket/server/src/main/java/com/redhat/thermostat/agent/ipc/unixsocket/server/internal/AcceptThread.java agent/ipc/unix-socket/server/src/main/java/com/redhat/thermostat/agent/ipc/unixsocket/server/internal/ClientHandler.java
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/agent/ipc/unix-socket/server/src/main/java/com/redhat/thermostat/agent/ipc/unixsocket/server/internal/AcceptThread.java	Tue Feb 09 14:29:41 2016 -0500
+++ b/agent/ipc/unix-socket/server/src/main/java/com/redhat/thermostat/agent/ipc/unixsocket/server/internal/AcceptThread.java	Tue Feb 09 15:31:40 2016 -0500
@@ -100,7 +100,7 @@
 
     private void processKey(SelectionKey key) {
         if (key.readyOps() > 0) {
-            logger.info("Got selection operation: " + key.readyOps());
+            logger.finest("Got selection operation: " + key.readyOps());
             try {
                 if (key.isAcceptable()) {
                     // We stored our wrapper socket as the attachment
@@ -114,7 +114,7 @@
                     // Store handler as attachment
                     SelectionKey clientKey = client.getSelectionKey();
                     clientKey.attach(handler);
-                    logger.info("Accepted client for \"" + channel.getName() + "\"");
+                    logger.fine("Accepted client for \"" + channel.getName() + "\"");
                 } else if (key.isReadable()) {
                     // Block additional reads on this client, until this read is finished
                     key.interestOps(0);
--- a/agent/ipc/unix-socket/server/src/main/java/com/redhat/thermostat/agent/ipc/unixsocket/server/internal/ClientHandler.java	Tue Feb 09 14:29:41 2016 -0500
+++ b/agent/ipc/unix-socket/server/src/main/java/com/redhat/thermostat/agent/ipc/unixsocket/server/internal/ClientHandler.java	Tue Feb 09 15:31:40 2016 -0500
@@ -68,20 +68,20 @@
     @Override
     public Void call() throws IOException {
         handleClient();
-        logger.info("Client [" + handlerNum + "] done"); // XXX
+        logger.finest("Client [" + handlerNum + "] done");
         return null;
     }
     
     private void handleClient() throws IOException {
         try {
-            logger.info("Got read from client for \"" + client.getName() + "\"");
+            logger.fine("Got read from client for \"" + client.getName() + "\"");
             // Read message from client
             ByteBuffer buf = ByteBuffer.allocate(MAX_BUFFER_SIZE);
             int read;
             read = client.read(buf);
             if (read < 0) {
                 // Received EOF
-                logger.info("Closing client for \"" + client.getName() + "\"");
+                logger.fine("Closing client for \"" + client.getName() + "\"");
                 client.close();
             } else {
                 // Set limit to mark end of data
@@ -100,7 +100,7 @@
                     // Write message to client
                     buf = ByteBuffer.wrap(output);
                     client.write(buf);
-                    logger.info("Wrote reply to client on \"" + client.getName() + "\"");
+                    logger.fine("Wrote reply to client on \"" + client.getName() + "\"");
                 }
                 
                 // Read finished, reset interest set to accept subsequent reads for this client