From f0643eda63affab7298720c729cac1b1925bda3a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 9 Feb 2017 15:18:32 +0100 Subject: Debugoutput --- common/mail/threadindexer.cpp | 4 ++-- common/queryrunner.cpp | 2 +- common/store.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/mail/threadindexer.cpp b/common/mail/threadindexer.cpp index 3da2fdd..6f2933c 100644 --- a/common/mail/threadindexer.cpp +++ b/common/mail/threadindexer.cpp @@ -87,8 +87,8 @@ void ThreadIndexer::updateThreadingIndex(const QByteArray &identifier, const App const auto subject = entity.getProperty(Mail::Subject::name); const auto normalizedSubject = stripOffPrefixes(subject.toString()).toUtf8(); if (messageId.toByteArray().isEmpty()) { - SinkError() << "Found an email without messageId. This is illegal and threading will break. Entity id: " << identifier; - SinkError() << "Subject: " << subject; + SinkWarning() << "Found an email without messageId. This is illegal and threading will break. Entity id: " << identifier; + SinkWarning() << "Subject: " << subject; } QVector thread; diff --git a/common/queryrunner.cpp b/common/queryrunner.cpp index 4af9866..748320f 100644 --- a/common/queryrunner.cpp +++ b/common/queryrunner.cpp @@ -66,7 +66,7 @@ QueryRunner::QueryRunner(const Sink::Query &query, const Sink::Resou { SinkTraceCtx(mLogCtx) << "Starting query. Is live:" << query.liveQuery() << " Limit: " << query.limit(); if (query.limit() && query.sortProperty().isEmpty()) { - SinkWarning() << "A limited query without sorting is typically a bad idea, because there is no telling what you're going to get."; + SinkWarningCtx(mLogCtx) << "A limited query without sorting is typically a bad idea, because there is no telling what you're going to get."; } auto guardPtr = QPointer(&guard); // We delegate loading of initial data to the result provider, so it can decide for itself what it needs to load. diff --git a/common/store.cpp b/common/store.cpp index b4ef2b7..6dd4fb3 100644 --- a/common/store.cpp +++ b/common/store.cpp @@ -93,7 +93,7 @@ QPair::Ptr, typenam Q_ASSERT(facade); Sink::Query resourceQuery; if (query.liveQuery()) { - SinkTraceCtx(ctx) << "Listening for new resources"; + SinkTraceCtx(ctx) << "Listening for new resources."; resourceQuery.setFlags(Query::LiveQuery); } resourceQuery.setFilter(query.getResourceFilter()); -- cgit v1.2.3