diff -r 6fceb66e1ad7 -r 91dc9acb03ed 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 Fri Aug 21 17:40:54 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."); } } }