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:
mguessan 2010-05-04 08:35:40 +00:00
parent 133f6c8f6c
commit 5b10d50f18
2 changed files with 5 additions and 14 deletions

View File

@ -32,21 +32,21 @@ public class DavMailException extends IOException {
/**
* Create a DavMail exception with the given BundleMessage key and arguments.
*
* @param key message key
* @param key message key
* @param arguments message values
*/
public DavMailException(String key, Object... arguments) {
this.message = new BundleMessage(key, arguments);
this.message = new BundleMessage(key, arguments);
}
/**
* Get formatted message
*
* @return formatted message
* @return english formatted message
*/
@Override
public String getMessage() {
return message.format();
return message.formatLog();
}
/**
@ -59,15 +59,6 @@ public class DavMailException extends IOException {
return message.format(locale);
}
/**
* Get formatted message for logging.
*
* @return english formatted message
*/
public String getLogMessage() {
return message.formatLog();
}
/**
* Get internal exception BundleMessage.
*

View File

@ -242,7 +242,7 @@ public class ExchangeSession {
getWellKnownFolders();
} catch (DavMailAuthenticationException exc) {
LOGGER.error(exc.getLogMessage());
LOGGER.error(exc.getMessage());
throw exc;
} catch (UnknownHostException exc) {
BundleMessage message = new BundleMessage("EXCEPTION_CONNECT", exc.getClass().getName(), exc.getMessage());