If the node simply closes the connection, log that, too.
[jSite.git] / src / main / java / de / todesbaum / util / freenet / fcp2 / Connection.java
index ea40d1f..eccc89b 100644 (file)
@@ -322,6 +322,7 @@ public class Connection {
                                        line = nodeReader.readLine();
                                        // System.err.println("> " + line);
                                        if (line == null) {
+                        logger.fine("Connection was closed.");
                                                break;
                                        }
                                        if (message == null) {
@@ -374,7 +375,7 @@ public class Connection {
                                        throw new IOException("Unexpected line: " + line);
                                }
                        } catch (IOException ioe1) {
-                               // ioe1.printStackTrace();
+                               logger.log(FINE, "Exception while reading from node.", ioe1);
                        } finally {
                                if (nodeReader != null) {
                                        try {