From a35acab8ecdadb5547c445a41ca2a67d978ed4a6 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 18 Apr 2015 12:16:34 +0200 Subject: Log messages --- dummyresource/resourcefactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dummyresource') diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp index 8f0a2bd..679bba2 100644 --- a/dummyresource/resourcefactory.cpp +++ b/dummyresource/resourcefactory.cpp @@ -151,7 +151,7 @@ private slots: Async::Job processQueuedCommand(const Akonadi2::QueuedCommand *queuedCommand) { - Log() << "Processing command: " << queuedCommand->commandId(); + Log() << "Processing command: " << Akonadi2::Commands::name(queuedCommand->commandId()); //Throw command into appropriate pipeline switch (queuedCommand->commandId()) { case Akonadi2::Commands::DeleteEntityCommand: @@ -191,7 +191,7 @@ private slots: return; } auto queuedCommand = Akonadi2::GetQueuedCommand(ptr); - Trace() << "Dequeued: " << queuedCommand->commandId(); + Trace() << "Dequeued Command: " << Akonadi2::Commands::name(queuedCommand->commandId()); //TODO JOBAPI: job lifetime management //Right now we're just leaking jobs. In this case we'd like jobs that are heap allocated and delete //themselves once done. In other cases we'd like jobs that only live as long as their handle though. -- cgit v1.2.3