diff options
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r-- | common/resourceaccess.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 9ecdab1..1dba571 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -200,7 +200,7 @@ void ResourceAccess::sendCommand(const QSharedPointer<QueuedCommand> &command) | |||
200 | //TODO: we should have a timeout for commands | 200 | //TODO: we should have a timeout for commands |
201 | d->messageId++; | 201 | d->messageId++; |
202 | const auto messageId = d->messageId; | 202 | const auto messageId = d->messageId; |
203 | log(QString("Sending command %1 with messageId %2").arg(command->commandId).arg(d->messageId)); | 203 | log(QString("Sending command \"%1\" with messageId %2").arg(QString(Akonadi2::Commands::name(command->commandId))).arg(d->messageId)); |
204 | if (command->callback) { | 204 | if (command->callback) { |
205 | registerCallback(d->messageId, [this, messageId, command](int number, QString foo) { | 205 | registerCallback(d->messageId, [this, messageId, command](int number, QString foo) { |
206 | d->pendingCommands.remove(messageId); | 206 | d->pendingCommands.remove(messageId); |
@@ -215,7 +215,7 @@ void ResourceAccess::sendCommand(const QSharedPointer<QueuedCommand> &command) | |||
215 | void ResourceAccess::processCommandQueue() | 215 | void ResourceAccess::processCommandQueue() |
216 | { | 216 | { |
217 | //TODO: serialize instead of blast them all through the socket? | 217 | //TODO: serialize instead of blast them all through the socket? |
218 | log(QString("We have %1 queued commands").arg(d->commandQueue.size())); | 218 | Trace() << "We have " << d->commandQueue.size() << " queued commands"; |
219 | for (auto command: d->commandQueue) { | 219 | for (auto command: d->commandQueue) { |
220 | sendCommand(command); | 220 | sendCommand(command); |
221 | } | 221 | } |