public void endTrace(QueryObserver indexObserver, long startTime, Collection<Collection> result) {
    if (logger.isInfoEnabled() && traceOn) {
      int resultSize = 0;

      for (Collection aResult : result) {
        resultSize += aResult.size();
      }

      String queryVerboseMsg =
          DefaultQuery.getLogMessage(indexObserver, startTime, resultSize, queryString);
      if (logger.isInfoEnabled()) {
        logger.info(queryVerboseMsg);
      }
    }
  }
For queries which are executed from a Function "with a Filter".

@return returns if this query is coming from a {@link Function}.
geode-core/src/main/java/org/apache/geode/cache/query/internal/DefaultQuery.java