log exceptions in ConsoleProxyServlet

- Added exception to the logger method parameters to make stack trace available
- removed checking of debug level, it does not save temporary object creation here

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
Laszlo Hornyak 2014-04-30 21:20:31 +02:00
parent 59d0b75e79
commit 78507c07c8
1 changed files with 2 additions and 6 deletions

View File

@ -237,9 +237,7 @@ public class ConsoleProxyServlet extends HttpServlet {
try {
resp.sendRedirect(composeThumbnailUrl(rootUrl, vm, host, w, h));
} catch (IOException e) {
if (s_logger.isInfoEnabled()) {
s_logger.info("Client may already close the connection");
}
s_logger.info("Client may already close the connection", e);
}
}
@ -501,9 +499,7 @@ public class ConsoleProxyServlet extends HttpServlet {
resp.setContentType("text/html");
resp.getWriter().print(content);
} catch (IOException e) {
if (s_logger.isInfoEnabled()) {
s_logger.info("Client may already close the connection");
}
s_logger.info("Client may already close the connection", e);
}
}