From d79939ffbe4396a8be9e5dbffb77f8b8efe1d3e8 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 3 Apr 2015 00:18:51 +0200 Subject: debug messages --- dummyresource/resourcefactory.cpp | 1 + synchronizer/listener.cpp | 2 ++ 2 files changed, 3 insertions(+) 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: Async::Job processQueuedCommand(const Akonadi2::QueuedCommand *queuedCommand) { + Log() << "Processing command: " << queuedCommand->commandId(); //Throw command into appropriate pipeline switch (queuedCommand->commandId()) { 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 break; default: if (commandId > Akonadi2::Commands::CustomCommand) { + Log() << QString("\tReceived custom command from %1: ").arg(client.name) << commandId; loadResource(); if (m_resource) { m_resource->processCommand(commandId, client.commandBuffer, size, m_pipeline); } } else { + Warning() << QString("\tReceived invalid command from %1: ").arg(client.name) << commandId; //TODO: handle error: we don't know wtf this command is } break; -- cgit v1.2.3