slightly adapted some logging messages

This commit is contained in:
delvh 2020-04-06 22:55:59 +02:00
parent ba67af613d
commit 6643cbeb3f

View File

@ -70,9 +70,9 @@ public class Client implements Closeable {
throws TimeLimitExceededException, IOException, InterruptedException { throws TimeLimitExceededException, IOException, InterruptedException {
if (online) throw new IllegalStateException("Handshake has already been performed successfully"); if (online) throw new IllegalStateException("Handshake has already been performed successfully");
// Establish TCP connection // Establish TCP connection
logger.info(String.format("Attempting connection to server %s:%d...", config.getServer(), config.getPort())); logger.finer(String.format("Attempting connection to server %s:%d...", config.getServer(), config.getPort()));
socket = new Socket(config.getServer(), config.getPort()); socket = new Socket(config.getServer(), config.getPort());
logger.info("Successfully connected to server."); logger.fine("Successfully established TCP connection to server");
// Create message receiver // Create message receiver
receiver = new Receiver(socket.getInputStream()); receiver = new Receiver(socket.getInputStream());