From 2721638e4d4e86f8e8b64bc9dbf9573d32d27b24 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 4 Mar 2015 17:26:23 +0100 Subject: minor - reduce logging spam and removed unneeded check --- dozentenmodul/src/main/java/gui/intro/Login_GUI.java | 2 -- dozentenmodul/src/main/java/util/GuiManager.java | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'dozentenmodul/src/main/java') diff --git a/dozentenmodul/src/main/java/gui/intro/Login_GUI.java b/dozentenmodul/src/main/java/gui/intro/Login_GUI.java index fb46335a..8cb8b3ca 100644 --- a/dozentenmodul/src/main/java/gui/intro/Login_GUI.java +++ b/dozentenmodul/src/main/java/gui/intro/Login_GUI.java @@ -605,8 +605,6 @@ public class Login_GUI extends JInternalFrame { // if not then request it from the masterserver List tempOrgs = null; try { - if (ThriftManager.getMasterClient() == null) LOGGER.error("DERP"); - tempOrgs = ThriftManager.getMasterClient().getOrganizations(); } catch (TException e) { LOGGER.error("Could not fetch list of identity providers from the masterserver, see trace: ", e); diff --git a/dozentenmodul/src/main/java/util/GuiManager.java b/dozentenmodul/src/main/java/util/GuiManager.java index a2c4cd1f..32a52cea 100644 --- a/dozentenmodul/src/main/java/util/GuiManager.java +++ b/dozentenmodul/src/main/java/util/GuiManager.java @@ -175,15 +175,13 @@ public abstract class GuiManager { } catch (NoSuchFieldException e) { // only this case if interesting for us, // since we now we don't have a help message to show - LOGGER.debug("No 'HELP_MESSAGE' defined in class: " + currentFrame.getClass().getName()); - return true; + return false; } catch (IllegalArgumentException|IllegalAccessException|SecurityException e) { LOGGER.error("Failed to check for 'HELP_MESSAGE' variable in '" + currentFrame.getClass() + "' class, see trace: " + e); // just do nothing } // print it for debugging purposes - LOGGER.debug("HELP_MESSAGE of '" + currentFrame.getClass().getName() + "': " + test); // still here? means we have a HELP_MESSAGE to display JMenu mnNewMenu_Info = new JMenu("Info"); mnNewMenu_Info.addMouseListener(new MouseAdapter() { -- cgit v1.2.3-55-g7522