From: David ‘Bombe’ Roden Date: Thu, 8 May 2008 21:52:18 +0000 (+0000) Subject: add some logging X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=37774bb0ef4c6b09258d70c02217c7f2640057eb;p=jSite2.git add some logging git-svn-id: http://trooper/svn/projects/jSite/trunk@788 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/jsite/core/NodeManager.java b/src/net/pterodactylus/jsite/core/NodeManager.java index 84867cd..5ed51a7 100644 --- a/src/net/pterodactylus/jsite/core/NodeManager.java +++ b/src/net/pterodactylus/jsite/core/NodeManager.java @@ -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) {