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

Improve message logging

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@884 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-12-16 22:12:54 +00:00
parent b4d12102e6
commit a4d8a5c33d

View File

@ -749,7 +749,18 @@ public class ExchangeSession {
message.messageId = message.messageId.substring(1, message.messageId.length() - 1); message.messageId = message.messageId.substring(1, message.messageId.length() - 1);
} }
LOGGER.debug("Found message IMAP uid: " + message.imapUid + " href: " + responseEntity.getHref() + " permanenturl:" + message.permanentUrl); if (LOGGER.isDebugEnabled()) {
StringBuilder buffer = new StringBuilder();
buffer.append("Message");
if (message.imapUid != 0) {
buffer.append(" IMAP uid: ").append(message.imapUid);
}
if (message.uid != null) {
buffer.append(" uid: ").append(message.uid);
}
buffer.append(" href: ").append(responseEntity.getHref()).append(" permanenturl:").append(message.permanentUrl);
LOGGER.debug(buffer.toString());
}
return message; return message;
} }