Skip to content

Commit fb12477

Browse files
committed
improve debug log
1 parent 46cfa2f commit fb12477

File tree

1 file changed

+5
-3
lines changed
  • firebase-firestore/src/main/java/com/google/firebase/firestore/local

1 file changed

+5
-3
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/local/QueryEngine.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,17 @@ private void createCacheIndexes(Query query, QueryContext context, int resultSiz
125125
if (context.getDocumentReadCount() < indexAutoCreationMinCollectionSize) {
126126
Logger.debug(
127127
LOG_TAG,
128-
"SDK will only creates cache indexes for collection contains more than or equal to "
129-
+ "%s documents.",
128+
"SDK will not create cache indexes for query: %s, since it only creates cache indexes "
129+
+ "for collection contains more than or equal to %s documents.",
130+
query.toString(),
130131
indexAutoCreationMinCollectionSize);
131132
return;
132133
}
133134

134135
Logger.debug(
135136
LOG_TAG,
136-
"Query scans %s local documents and returns %s documents as results.",
137+
"Query: %s, scans %s local documents and returns %s documents as results.",
138+
query.toString(),
137139
context.getDocumentReadCount(),
138140
resultSize);
139141

0 commit comments

Comments
 (0)