diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/bwlehrpool/bwlp_guac/AvailableClient.java | 3 | ||||
-rw-r--r-- | src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/AvailableClient.java b/src/main/java/de/bwlehrpool/bwlp_guac/AvailableClient.java index 7c4ca80..0318965 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/AvailableClient.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/AvailableClient.java @@ -47,7 +47,7 @@ public class AvailableClient { if (this.password == null || !this.password.equals(source.password)) { if (source.state != State.OCCUPIED) { if (this.inUseBy != null) { - LOGGER.info("Client " + this + "is available again"); + LOGGER.info("Client " + this + " is available again"); this.inUseBy = null; this.connection = null; } @@ -131,6 +131,7 @@ public class AvailableClient { try (VncConnection vnc = new VncConnection(this.clientip, 5900)) { LOGGER.debug("VNC Version for " + this.clientip + " is " + vnc.handshake()); if (vnc.tryLogin(this.password)) { + LOGGER.info("Connection to " + this + " is OK"); this.lastConnectionCheck = now; return this.connectionOk = true; } diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java index 7f0856c..9a6e5d7 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java @@ -89,6 +89,7 @@ public class BwlpUserContext extends AbstractUserContext { for (String id : connectionDirectory.getIdentifiers()) { Connection con = connectionDirectory.get(id); if (con instanceof WrappedConnection) { + LOGGER.info("Checking connection for " + con.getIdentifier()); if (((WrappedConnection) con).checkConnection(3)) { ok = true; } |