diff options
Diffstat (limited to 'synchronizer')
-rw-r--r-- | synchronizer/listener.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synchronizer/listener.cpp b/synchronizer/listener.cpp index 5165111..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; |
@@ -376,7 +378,7 @@ void Listener::loadResource() | |||
376 | Log() << QString("\tFacades: %1").arg(Akonadi2::FacadeFactory::instance().getFacade<Akonadi2::Domain::Event>(m_resourceName)->type()); | 378 | Log() << QString("\tFacades: %1").arg(Akonadi2::FacadeFactory::instance().getFacade<Akonadi2::Domain::Event>(m_resourceName)->type()); |
377 | m_resource->configurePipeline(m_pipeline); | 379 | m_resource->configurePipeline(m_pipeline); |
378 | } else { | 380 | } else { |
379 | Warning() << QString("Failed to load resource %1").arg(m_resourceName); | 381 | Error() << QString("Failed to load resource %1").arg(m_resourceName); |
380 | } | 382 | } |
381 | //TODO: on failure ... what? | 383 | //TODO: on failure ... what? |
382 | //Enter broken state? | 384 | //Enter broken state? |