1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

Additional exception trace exclusion

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1818 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-10-12 20:20:43 +00:00
parent 5852fe662b
commit 28b3001317

View File

@ -242,7 +242,7 @@ public final class ExchangeSessionFactory {
if (!checkNetwork() || configChecked) {
ExchangeSession.LOGGER.warn(BundleMessage.formatLog("EXCEPTION_NETWORK_DOWN"));
// log full stack trace for unknown errors
if (!(exc instanceof UnknownHostException)) {
if (!((exc instanceof UnknownHostException)||(exc instanceof NetworkDownException))) {
ExchangeSession.LOGGER.debug(exc, exc);
}
throw new NetworkDownException("EXCEPTION_NETWORK_DOWN");