diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-03 00:18:51 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-03 00:18:51 +0200 |
commit | d79939ffbe4396a8be9e5dbffb77f8b8efe1d3e8 (patch) | |
tree | 9c1305f5eac1a617c02696c71f66f4d1ea5a8a1c | |
parent | 721a3a6a415b8137967c9c0da4a6f6db8cb61202 (diff) | |
download | sink-d79939ffbe4396a8be9e5dbffb77f8b8efe1d3e8.tar.gz sink-d79939ffbe4396a8be9e5dbffb77f8b8efe1d3e8.zip |
debug messages
-rw-r--r-- | dummyresource/resourcefactory.cpp | 1 | ||||
-rw-r--r-- | synchronizer/listener.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp index d94284c..6e06250 100644 --- a/dummyresource/resourcefactory.cpp +++ b/dummyresource/resourcefactory.cpp | |||
@@ -150,6 +150,7 @@ private slots: | |||
150 | 150 | ||
151 | Async::Job<void> processQueuedCommand(const Akonadi2::QueuedCommand *queuedCommand) | 151 | Async::Job<void> processQueuedCommand(const Akonadi2::QueuedCommand *queuedCommand) |
152 | { | 152 | { |
153 | Log() << "Processing command: " << queuedCommand->commandId(); | ||
153 | //Throw command into appropriate pipeline | 154 | //Throw command into appropriate pipeline |
154 | switch (queuedCommand->commandId()) { | 155 | switch (queuedCommand->commandId()) { |
155 | case Akonadi2::Commands::DeleteEntityCommand: | 156 | case Akonadi2::Commands::DeleteEntityCommand: |
diff --git a/synchronizer/listener.cpp b/synchronizer/listener.cpp index 377c658..2e1e918 100644 --- a/synchronizer/listener.cpp +++ b/synchronizer/listener.cpp | |||
@@ -254,11 +254,13 @@ void Listener::processCommand(int commandId, uint messageId, Client &client, uin | |||
254 | break; | 254 | break; |
255 | default: | 255 | default: |
256 | if (commandId > Akonadi2::Commands::CustomCommand) { | 256 | if (commandId > Akonadi2::Commands::CustomCommand) { |
257 | Log() << QString("\tReceived custom command from %1: ").arg(client.name) << commandId; | ||
257 | loadResource(); | 258 | loadResource(); |
258 | if (m_resource) { | 259 | if (m_resource) { |
259 | m_resource->processCommand(commandId, client.commandBuffer, size, m_pipeline); | 260 | m_resource->processCommand(commandId, client.commandBuffer, size, m_pipeline); |
260 | } | 261 | } |
261 | } else { | 262 | } else { |
263 | Warning() << QString("\tReceived invalid command from %1: ").arg(client.name) << commandId; | ||
262 | //TODO: handle error: we don't know wtf this command is | 264 | //TODO: handle error: we don't know wtf this command is |
263 | } | 265 | } |
264 | break; | 266 | break; |