slightly adapted some logging messages
This commit is contained in:
parent
ba67af613d
commit
6643cbeb3f
@ -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());
|
||||||
|
Reference in New Issue
Block a user