bug 14301: suppress expected exceptions from showing annoying stack dump, the message will be logged at TRACE level.

Reviewed-By: Kelven
This commit is contained in:
Kelven Yang 2012-03-28 15:41:59 -07:00
parent 4a742c73a7
commit 32ce95979b
1 changed files with 5 additions and 3 deletions

View File

@ -137,10 +137,12 @@ public class ClusterServiceServletContainer {
if(s_logger.isTraceEnabled())
s_logger.trace("Cluster request from " + conn.getRemoteAddress().toString() + " is processed");
}
} catch (ConnectionClosedException ex) {
s_logger.error("Client closed connection", ex);
} catch (ConnectionClosedException ex) {
// client close and read time out exceptions are expected
// when KEEP-AVLIE is enabled
s_logger.trace("Client closed connection", ex);
} catch (IOException ex) {
s_logger.error("I/O error", ex);
s_logger.trace("I/O error", ex);
} catch (HttpException ex) {
s_logger.error("Unrecoverable HTTP protocol violation", ex);
} finally {