Improve logging.

This commit is contained in:
Michael Jumper
2012-04-19 14:33:31 -07:00
parent 34e0292e0e
commit fc903e1dd2

View File

@@ -292,11 +292,13 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
} }
catch (IOException e) { catch (IOException e) {
// Log typically frequent I/O error if desired
logger.debug("Error writing to servlet output stream", e);
// Detach and close // Detach and close
session.detachTunnel(tunnel); session.detachTunnel(tunnel);
tunnel.close(); tunnel.close();
throw new GuacamoleServerException("I/O error writing to servlet output stream.", e);
} }
finally { finally {
tunnel.releaseReader(); tunnel.releaseReader();