diff options
author | Simon Rettberg | 2020-04-30 16:38:49 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-04-30 16:38:49 +0200 |
commit | 8a267a9df772f32b5f5bb78f76d35312d7d542d0 (patch) | |
tree | f9eacc86db644bdae60ebc48710966ec5d7722b8 | |
parent | First Commit (diff) | |
download | bwlp-guacamole-ext-8a267a9df772f32b5f5bb78f76d35312d7d542d0.tar.gz bwlp-guacamole-ext-8a267a9df772f32b5f5bb78f76d35312d7d542d0.tar.xz bwlp-guacamole-ext-8a267a9df772f32b5f5bb78f76d35312d7d542d0.zip |
Logging
-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; } |