diff -r efce4ec25564 -r f2293e8566f5 org/sonews/daemon/ChannelWriter.java --- a/org/sonews/daemon/ChannelWriter.java Thu Aug 20 16:57:38 2009 +0200 +++ b/org/sonews/daemon/ChannelWriter.java Thu Aug 20 18:41:21 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."); } } }