diff options
author | Steffen Ritter | 2023-03-02 11:26:26 +0100 |
---|---|---|
committer | Steffen Ritter | 2023-03-02 11:26:26 +0100 |
commit | 824ba075eaa9a696cd4d54d17b41335411a17ad7 (patch) | |
tree | 1a3197039b6bee95342a3c66f8502975bd74e0c3 | |
parent | Compatibility with guacamole 1.4.0 (diff) | |
download | bwlp-guacamole-ext-824ba075eaa9a696cd4d54d17b41335411a17ad7.tar.gz bwlp-guacamole-ext-824ba075eaa9a696cd4d54d17b41335411a17ad7.tar.xz bwlp-guacamole-ext-824ba075eaa9a696cd4d54d17b41335411a17ad7.zip |
Reduce logging spam
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | src/main/java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java | 6 | ||||
-rw-r--r-- | src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java | 2 |
3 files changed, 4 insertions, 6 deletions
@@ -17,7 +17,7 @@ <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <maven.build.timestamp.format>yyyy.MM.dd HH:mm</maven.build.timestamp.format> + <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format> </properties> <build> diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java index e77c584..40935ea 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java @@ -31,7 +31,7 @@ public class BwlpAuthenticationProvider implements AuthenticationProvider { LOGGER.info("Plugin build revision: " + MANIFEST.getProperty("Build-Revision")); String timestamp = MANIFEST.getProperty("Build-Revision-Timestamp"); - DateFormat formatter = new SimpleDateFormat("yyyy.MM.dd HH:mm"); + DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm"); long milliSeconds= Long.parseLong(timestamp); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(milliSeconds); @@ -80,11 +80,9 @@ public class BwlpAuthenticationProvider implements AuthenticationProvider { public UserContext redecorate(UserContext decorated, UserContext context, AuthenticatedUser authenticatedUser, Credentials credentials) throws GuacamoleException { - LOGGER.info(MANIFEST.getProperty("Build-Revision")); - String username = Util.getUsername(authenticatedUser); if (username == null) { - LOGGER.warn("redecorate: Ignoring user without name"); + LOGGER.warn("Ignoring user without name"); return context; } diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java b/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java index 10c9eb2..5e4cb90 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java @@ -354,7 +354,7 @@ public class ConnectionManager { try { ctx = SSLContext.getInstance("TLSv1.2"); } catch (NoSuchAlgorithmException e) { - LOGGER.warn("Could not get TLSv1.2 context, SSL will be secure :-(", e); + LOGGER.warn("Could not get TLSv1.2 context, SSL will be insecure :-(", e); } if (ctx != null) { try { |