fixing log.trace

This commit is contained in:
Clebert Suconic 2016-06-08 14:15:13 -04:00
parent f9dd891db7
commit 17ffcd48c2
1 changed files with 5 additions and 2 deletions

View File

@ -592,8 +592,11 @@ final class PageSubscriptionImpl implements PageSubscription {
return true; return true;
} }
else { else {
logger.tracef("isComplete(%d)::calling is %s", (Object)page, this, consumedPages.isEmpty()); boolean isDone = info != null && info.isDone();
return info != null && info.isDone(); if (logger.isTraceEnabled()) {
logger.tracef("isComplete(%d):: found info=%s, isDone=%s", (Object) page, info, isDone);
}
return isDone;
} }
} }
} }