add some logging
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 8 May 2008 21:52:18 +0000 (21:52 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 8 May 2008 21:52:18 +0000 (21:52 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@788 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/jsite/core/NodeManager.java

index 84867cd..5ed51a7 100644 (file)
@@ -39,6 +39,7 @@ import java.util.logging.Logger;
 import net.pterodactylus.fcp.highlevel.HighLevelClient;
 import net.pterodactylus.fcp.highlevel.HighLevelClientListener;
 import net.pterodactylus.util.io.Closer;
+import net.pterodactylus.util.logging.Logging;
 
 /**
  * TODO
@@ -49,7 +50,7 @@ import net.pterodactylus.util.io.Closer;
 public class NodeManager implements HighLevelClientListener {
 
        /** Logger. */
-       private static final Logger logger = Logger.getLogger(NodeManager.class.getName());
+       private static final Logger logger = Logging.getLogger(NodeManager.class.getName());
 
        /** The FCP client name. */
        private final String clientName;
@@ -387,6 +388,7 @@ public class NodeManager implements HighLevelClientListener {
         * {@inheritDoc}
         */
        public void clientConnected(HighLevelClient highLevelClient) {
+               logger.log(Level.FINER, "clientConnected(c=" + highLevelClient + ")");
                Node node = clientNodes.get(highLevelClient);
                if (node == null) {
                        logger.log(Level.WARNING, "got event for unknown client");
@@ -399,6 +401,7 @@ public class NodeManager implements HighLevelClientListener {
         * {@inheritDoc}
         */
        public void clientDisconnected(HighLevelClient highLevelClient, Throwable throwable) {
+               logger.log(Level.FINER, "clientDisconnected(c=" + highLevelClient + ",t=" + throwable +")");
                synchronized (syncObject) {
                        Node node = clientNodes.remove(highLevelClient);
                        if (node == null) {