import java.util.logging.Level;
import java.util.logging.Logger;
-import net.pterodactylus.util.logging.Logging;
-
/**
* Handles an FCP connection to a node.
*
class FcpConnectionHandler implements Runnable {
/** The logger. */
- private static final Logger logger = Logging.getLogger(FcpConnectionHandler.class.getName());
+ private static final Logger logger = Logger.getLogger(FcpConnectionHandler.class.getName());
/** The underlying connection. */
private final FcpConnection fcpConnection;
/**
* {@inheritDoc}
*/
+ @Override
public void run() {
FcpMessage fcpMessage = null;
Throwable throwable = null;
}
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;
}
}
String field = line.substring(0, equalSign);
String value = line.substring(equalSign + 1);
- assert fcpMessage != null : "fcp message is null";
+ assert fcpMessage != null: "fcp message is null";
fcpMessage.setField(field, value);
} catch (IOException ioe1) {
throwable = ioe1;