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
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;
* {@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");
* {@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) {