GUAC-909: Log "unsupported operation" exceptions at debug level.

This commit is contained in:
Michael Jumper
2014-10-27 10:27:13 -07:00
parent b83c83c324
commit 770105de06

View File

@@ -32,6 +32,7 @@ import javax.servlet.http.HttpSession;
import org.glyptodon.guacamole.GuacamoleClientException;
import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleUnauthorizedException;
import org.glyptodon.guacamole.GuacamoleUnsupportedException;
import org.glyptodon.guacamole.net.auth.UserContext;
import org.glyptodon.guacamole.protocol.GuacamoleStatus;
import org.slf4j.Logger;
@@ -120,6 +121,10 @@ public abstract class RestrictedHttpServlet extends HttpServlet {
logger.warn("Client request rejected: {}", e.getMessage());
sendError(response, e.getStatus(), e.getMessage());
}
catch (GuacamoleUnsupportedException e) {
logger.debug("Unsupported operation.", e);
sendError(response, e.getStatus(), e.getMessage());
}
catch (GuacamoleException e) {
logger.error("Internal server error.", e);
sendError(response, e.getStatus(), "Internal server error.");