mirror of https://github.com/apache/cloudstack.git
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:
parent
59d0b75e79
commit
78507c07c8
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue