summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-03-31 16:09:41 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-08-15 20:03:14 (GMT)
commitce10712749bef7c422ac18f55b8a83f976fa2fb2 (patch)
tree4e57616051af8bd532ae6494f624e2325b1689b0
parentd5655c6a80692a39d285b9b085d91dec89af31d5 (diff)
Monitor: Print warnings about unexpected notification commands
-rw-r--r--src/core/monitor_p.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/monitor_p.cpp b/src/core/monitor_p.cpp
index 02c6b53..50660df 100644
--- a/src/core/monitor_p.cpp
+++ b/src/core/monitor_p.cpp
@@ -642,6 +642,7 @@ void MonitorPrivate::commandReceived(qint64 tag, const Protocol::Command &comman
} else {
subname += QByteArray::number(quintptr(q));
}
+ qCDebug(AKONADICORE_LOG) << q_ptr << "Subscribing as \"" << subname << "\"";
Protocol::CreateSubscriptionCommand subCmd(subname);
ntfConnection->sendCommand(2, subCmd);
break;
@@ -663,7 +664,7 @@ void MonitorPrivate::commandReceived(qint64 tag, const Protocol::Command &comman
break;
default:
- // TODO
+ qCWarning(AKONADICORE_LOG) << "Received an unexpected response on Notification stream: "<< command.debugString();
break;
}
} else {
@@ -675,6 +676,7 @@ void MonitorPrivate::commandReceived(qint64 tag, const Protocol::Command &comman
slotNotify(command);
break;
default:
+ qCWarning(AKONADICORE_LOG) << "Received an unexpected message on Notification stream:" << command.debugString();
break;
}
}