Skip to content

Commit 16ab819

Browse files
author
Kelven Yang
committed
bug 14301: suppress expected exceptions from showing annoying stack dump, the message will be logged at TRACE level.
Reviewed-By: Kelven
1 parent bb7811c commit 16ab819

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

server/src/com/cloud/cluster/ClusterServiceServletContainer.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,12 @@ public void run() {
137137
if(s_logger.isTraceEnabled())
138138
s_logger.trace("Cluster request from " + conn.getRemoteAddress().toString() + " is processed");
139139
}
140-
} catch (ConnectionClosedException ex) {
141-
s_logger.error("Client closed connection", ex);
140+
} catch (ConnectionClosedException ex) {
141+
// client close and read time out exceptions are expected
142+
// when KEEP-AVLIE is enabled
143+
s_logger.trace("Client closed connection", ex);
142144
} catch (IOException ex) {
143-
s_logger.error("I/O error", ex);
145+
s_logger.trace("I/O error", ex);
144146
} catch (HttpException ex) {
145147
s_logger.error("Unrecoverable HTTP protocol violation", ex);
146148
} finally {

0 commit comments

Comments
 (0)