mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 03:32: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:
parent
b4d12102e6
commit
a4d8a5c33d
@ -749,7 +749,18 @@ public class ExchangeSession {
|
||||
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;
|
||||
}
|
||||
|
||||
@ -1515,7 +1526,7 @@ public class ExchangeSession {
|
||||
try {
|
||||
write(os, messageUrl);
|
||||
} catch (HttpNotFoundException e) {
|
||||
LOGGER.debug("Message not found at: "+messageUrl+", retrying with permanenturl");
|
||||
LOGGER.debug("Message not found at: " + messageUrl + ", retrying with permanenturl");
|
||||
write(os, permanentUrl);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user