GUAC-909: Log "unsupported operation" exceptions at debug level.
This commit is contained in:
1 parent
b83c83c324
commit
770105de06
1 file changed
+5
@@ -32,6 +32,7 @@ import javax.servlet.http.HttpSession;
|
|||||||
import org.glyptodon.guacamole.GuacamoleClientException;
|
import org.glyptodon.guacamole.GuacamoleClientException;
|
||||||
import org.glyptodon.guacamole.GuacamoleException;
|
import org.glyptodon.guacamole.GuacamoleException;
|
||||||
import org.glyptodon.guacamole.GuacamoleUnauthorizedException;
|
import org.glyptodon.guacamole.GuacamoleUnauthorizedException;
|
||||||
|
import org.glyptodon.guacamole.GuacamoleUnsupportedException;
|
||||||
import org.glyptodon.guacamole.net.auth.UserContext;
|
import org.glyptodon.guacamole.net.auth.UserContext;
|
||||||
import org.glyptodon.guacamole.protocol.GuacamoleStatus;
|
import org.glyptodon.guacamole.protocol.GuacamoleStatus;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@@ -120,6 +121,10 @@ public abstract class RestrictedHttpServlet extends HttpServlet {
|
|||||||
logger.warn("Client request rejected: {}", e.getMessage());
|
logger.warn("Client request rejected: {}", e.getMessage());
|
||||||
sendError(response, e.getStatus(), 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) {
|
catch (GuacamoleException e) {
|
||||||
logger.error("Internal server error.", e);
|
logger.error("Internal server error.", e);
|
||||||
sendError(response, e.getStatus(), "Internal server error.");
|
sendError(response, e.getStatus(), "Internal server error.");
|
||||||
|
|||||||
Reference in new issue
Block a user