From 4f6d324285aec8df66d341243bcf0bc09c240c02 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 10 Apr 2017 16:18:10 +0200 Subject: Less noise --- common/synchronizer.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'common/synchronizer.cpp') diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index fcd135c..3e7bd30 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp @@ -589,21 +589,19 @@ KAsync::Job Synchronizer::replay(const QByteArray &type, const QByteArray return job.then([this, operation, type, uid, oldRemoteId](const QByteArray &remoteId) { if (operation == Sink::Operation_Creation) { SinkTraceCtx(mLogCtx) << "Replayed creation with remote id: " << remoteId; - if (remoteId.isEmpty()) { - SinkWarningCtx(mLogCtx) << "Returned an empty remoteId from the creation"; - } else { + if (!remoteId.isEmpty()) { syncStore().recordRemoteId(type, uid, remoteId); } } else if (operation == Sink::Operation_Modification) { SinkTraceCtx(mLogCtx) << "Replayed modification with remote id: " << remoteId; - if (remoteId.isEmpty()) { - SinkWarningCtx(mLogCtx) << "Returned an empty remoteId from the modification"; - } else { + if (!remoteId.isEmpty()) { syncStore().updateRemoteId(type, uid, remoteId); } } else if (operation == Sink::Operation_Removal) { SinkTraceCtx(mLogCtx) << "Replayed removal with remote id: " << oldRemoteId; - syncStore().removeRemoteId(type, uid, oldRemoteId); + if (!oldRemoteId.isEmpty()) { + syncStore().removeRemoteId(type, uid, oldRemoteId); + } } else { SinkErrorCtx(mLogCtx) << "Unkown operation" << operation; } -- cgit v1.2.3