From 824ba075eaa9a696cd4d54d17b41335411a17ad7 Mon Sep 17 00:00:00 2001
From: Steffen Ritter
Date: Thu, 2 Mar 2023 11:26:26 +0100
Subject: Reduce logging spam
---
pom.xml | 2 +-
.../java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java | 6 ++----
src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java | 2 +-
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/pom.xml b/pom.xml
index 3c8717d..e5801d0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,7 +17,7 @@
UTF-8
- yyyy.MM.dd HH:mm
+ yyyy-MM-dd HH:mm
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 {
--
cgit v1.2.3-55-g7522