diff -r 6fceb66e1ad7 -r 6ae5e4f8329b org/sonews/daemon/ChannelWriter.java --- a/org/sonews/daemon/ChannelWriter.java Fri Jun 26 16:48:50 2009 +0200 +++ b/org/sonews/daemon/ChannelWriter.java Mon Aug 24 13:00:05 2009 +0200 @@ -123,7 +123,7 @@ } catch (IOException ex) { - Log.msg("Error writing to channel: " + ex, false); + Log.get().warning("Error writing to channel: " + ex); // Cancel write events for this channel selKey.cancel(); @@ -137,7 +137,7 @@ } catch(CancelledKeyException ex) { - Log.msg("ChannelWriter.run(): " + ex, true); + Log.get().info("ChannelWriter.run(): " + ex); } catch(Exception ex) { @@ -192,14 +192,14 @@ } else { - Log.msg("Invalid OP_WRITE key: " + selKey, false); + Log.get().warning("Invalid OP_WRITE key: " + selKey); - if (socketChannel.socket().isClosed()) + if(socketChannel.socket().isClosed()) { connection.shutdownInput(); connection.shutdownOutput(); socketChannel.close(); - Log.msg("Connection closed.", true); + Log.get().info("Connection closed."); } } }