Make sure log messages are not localized
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1027 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
133f6c8f6c
commit
5b10d50f18
|
@ -32,21 +32,21 @@ public class DavMailException extends IOException {
|
||||||
/**
|
/**
|
||||||
* Create a DavMail exception with the given BundleMessage key and arguments.
|
* Create a DavMail exception with the given BundleMessage key and arguments.
|
||||||
*
|
*
|
||||||
* @param key message key
|
* @param key message key
|
||||||
* @param arguments message values
|
* @param arguments message values
|
||||||
*/
|
*/
|
||||||
public DavMailException(String key, Object... arguments) {
|
public DavMailException(String key, Object... arguments) {
|
||||||
this.message = new BundleMessage(key, arguments);
|
this.message = new BundleMessage(key, arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get formatted message
|
* Get formatted message
|
||||||
*
|
*
|
||||||
* @return formatted message
|
* @return english formatted message
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message.format();
|
return message.formatLog();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -59,15 +59,6 @@ public class DavMailException extends IOException {
|
||||||
return message.format(locale);
|
return message.format(locale);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get formatted message for logging.
|
|
||||||
*
|
|
||||||
* @return english formatted message
|
|
||||||
*/
|
|
||||||
public String getLogMessage() {
|
|
||||||
return message.formatLog();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get internal exception BundleMessage.
|
* Get internal exception BundleMessage.
|
||||||
*
|
*
|
||||||
|
|
|
@ -242,7 +242,7 @@ public class ExchangeSession {
|
||||||
getWellKnownFolders();
|
getWellKnownFolders();
|
||||||
|
|
||||||
} catch (DavMailAuthenticationException exc) {
|
} catch (DavMailAuthenticationException exc) {
|
||||||
LOGGER.error(exc.getLogMessage());
|
LOGGER.error(exc.getMessage());
|
||||||
throw exc;
|
throw exc;
|
||||||
} catch (UnknownHostException exc) {
|
} catch (UnknownHostException exc) {
|
||||||
BundleMessage message = new BundleMessage("EXCEPTION_CONNECT", exc.getClass().getName(), exc.getMessage());
|
BundleMessage message = new BundleMessage("EXCEPTION_CONNECT", exc.getClass().getName(), exc.getMessage());
|
||||||
|
|
Loading…
Reference in New Issue