line = nodeReader.readLine();
// System.err.println("> " + line);
if (line == null) {
+ logger.fine("Connection was closed.");
break;
}
if (message == null) {
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 {