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

EWS: improve resolveNames logging

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1515 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-10-21 20:20:40 +00:00
parent 51c2d3b1a0
commit f641982096

View File

@ -1656,12 +1656,12 @@ public class EwsExchangeSession extends ExchangeSession {
if (operator == Operator.IsEqualTo) { if (operator == Operator.IsEqualTo) {
searchValue = '=' + searchValue; searchValue = '=' + searchValue;
} }
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("ResolveNames(" + searchValue + ')');
}
ResolveNamesMethod resolveNamesMethod = new ResolveNamesMethod(searchValue); ResolveNamesMethod resolveNamesMethod = new ResolveNamesMethod(searchValue);
executeMethod(resolveNamesMethod); executeMethod(resolveNamesMethod);
List<EWSMethod.Item> responses = resolveNamesMethod.getResponseItems(); List<EWSMethod.Item> responses = resolveNamesMethod.getResponseItems();
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("ResolveNames(" + searchValue + ") returned "+responses.size()+" results");
}
for (EWSMethod.Item response : responses) { for (EWSMethod.Item response : responses) {
Contact contact = buildGalfindContact(response); Contact contact = buildGalfindContact(response);
if (condition.isMatch(contact)) { if (condition.isMatch(contact)) {