Fix logging
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 10 Jul 2015 04:58:08 +0000 (06:58 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 10 Jul 2015 04:58:08 +0000 (06:58 +0200)
src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java

index 36be123..ad3e3f3 100644 (file)
@@ -76,7 +76,7 @@ class FcpConnectionHandler implements Runnable {
                        }
                        try {
                                String line = readLine();
                        }
                        try {
                                String line = readLine();
-                               logger.log(Level.FINEST, "read line: %1$s", line);
+                               logger.log(Level.FINEST, String.format("read line: %1$s", line));
                                if (line == null) {
                                        break;
                                }
                                if (line == null) {
                                        break;
                                }