Fixed logger usage.
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Mon, 26 Mar 2012 18:51:14 +0000 (11:51 -0700)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Mon, 26 Mar 2012 18:51:14 +0000 (11:51 -0700)
src/main/java/net/sourceforge/guacamole/net/basic/BasicGuacamoleTunnelServlet.java
src/main/java/net/sourceforge/guacamole/net/basic/WebSocketSupportLoader.java

index 0748495..58cfcac 100644 (file)
@@ -172,12 +172,12 @@ public class BasicGuacamoleTunnelServlet extends AuthenticatingHttpServlet {
 
             // If no configs/credentials in session, not authorized
             if (credentials == null || configs == null)
-                throw new GuacamoleException("Cannot connect - user not logged in.");
+                throw new GuacamoleSecurityException("Cannot connect - user not logged in.");
 
             // Get authorized config
             GuacamoleConfiguration config = configs.get(id);
             if (config == null) {
-                logger.error("Configuration id={} not found.", id);
+                logger.warn("Configuration id={} not found.", id);
                 throw new GuacamoleSecurityException("Requested configuration is not authorized.");
             }
             
index 5504637..3fe0ea5 100644 (file)
@@ -79,10 +79,10 @@ public class WebSocketSupportLoader implements ServletContextListener {
 
             // Servlet API 3.0 unsupported
             catch (ClassNotFoundException e) {
-                logger.error("Servlet API 3.0 not found.", e);
+                logger.info("Servlet API 3.0 not found.", e);
             }
             catch (NoSuchMethodException e) {
-                logger.error("Servlet API 3.0 found, but incomplete.", e);
+                logger.warn("Servlet API 3.0 found, but incomplete.", e);
             }
 
             // Servlet API 3.0 found, but errors during use