Turning off stacktraces for ConnectException, to cut down the noise in the logs

This commit is contained in:
Viktor Klang 2012-12-26 16:24:30 +01:00
parent 3cd9cca74a
commit 5fff91f482

View file

@ -339,8 +339,8 @@ class NettyTransport(private val settings: NettyTransportSettings, private val s
case NonFatal(e)
Future.failed(e)
}) onFailure {
case t: ConnectException statusPromise failure new NettyTransportException(t.getMessage, t.getCause)
case t statusPromise failure t
case t: ConnectException statusPromise failure new NettyTransportException(t.getMessage, t.getCause) with NoStackTrace
case t statusPromise failure t
}
statusPromise.future