summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-13 16:28:44 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-02-13 16:28:44 +0100
commit6e2b73b44126645fb809f88537c22c5423ae8c7d (patch)
tree66a8c3c04a030bba125866b6a3f8e4dd4132dae7
parent2856a783f0c935d9ef635f5a8dd43f74bda38299 (diff)
downloadsink-6e2b73b44126645fb809f88537c22c5423ae8c7d.tar.gz
sink-6e2b73b44126645fb809f88537c22c5423ae8c7d.zip
Improved debug messages
-rw-r--r--common/typeindex.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/typeindex.cpp b/common/typeindex.cpp
index f2c67a1..a897ad0 100644
--- a/common/typeindex.cpp
+++ b/common/typeindex.cpp
@@ -234,6 +234,7 @@ QVector<QByteArray> TypeIndex::query(const Sink::QueryBase &query, QSet<QByteArr
234 FulltextIndex fulltextIndex{resourceInstanceId}; 234 FulltextIndex fulltextIndex{resourceInstanceId};
235 const auto keys = fulltextIndex.lookup(it.value().value.toString()); 235 const auto keys = fulltextIndex.lookup(it.value().value.toString());
236 appliedFilters << it.key(); 236 appliedFilters << it.key();
237 SinkTraceCtx(mLogCtx) << "Fulltext index lookup found " << keys.size() << " keys.";
237 return keys; 238 return keys;
238 } 239 }
239 } 240 }
@@ -244,7 +245,7 @@ QVector<QByteArray> TypeIndex::query(const Sink::QueryBase &query, QSet<QByteArr
244 const auto keys = indexLookup(index, query.getFilter(it.key())); 245 const auto keys = indexLookup(index, query.getFilter(it.key()));
245 appliedFilters << it.key(); 246 appliedFilters << it.key();
246 appliedSorting = it.value(); 247 appliedSorting = it.value();
247 SinkTraceCtx(mLogCtx) << "Index lookup on " << it.key() << it.value() << " found " << keys.size() << " keys."; 248 SinkTraceCtx(mLogCtx) << "Sorted index lookup on " << it.key() << it.value() << " found " << keys.size() << " keys.";
248 return keys; 249 return keys;
249 } 250 }
250 } 251 }