X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FFcpConnectionHandler.java;h=e46966aa30361c9aaae10ebb7d1f65ea7527e28c;hb=b171126719c983b590c51f22eb60a3e0afdf1fb9;hp=dbf09696fad32f5d60c6931ae7e2e81c0273cfb7;hpb=508624458578f01a393f8b44f32b98b40054fdc8;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java b/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java index dbf0969..e46966a 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java +++ b/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java @@ -22,6 +22,10 @@ import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import java.nio.charset.Charset; +import java.util.logging.Level; +import java.util.logging.Logger; + +import net.pterodactylus.util.logging.Logging; /** * Handles an FCP connection to a node. @@ -30,6 +34,9 @@ import java.nio.charset.Charset; */ class FcpConnectionHandler implements Runnable { + /** The logger. */ + private static final Logger logger = Logging.getLogger(FcpConnectionHandler.class.getName()); + /** The underlying connection. */ private final FcpConnection fcpConnection; @@ -59,6 +66,7 @@ class FcpConnectionHandler implements Runnable { /** * {@inheritDoc} */ + @Override public void run() { FcpMessage fcpMessage = null; Throwable throwable = null; @@ -70,7 +78,7 @@ class FcpConnectionHandler implements Runnable { } try { String line = readLine(); - System.out.println("read line: " + line); + logger.log(Level.FINEST, "read line: %1$s", line); if (line == null) { break; }