summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/log.h3
-rw-r--r--synchronizer/listener.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/common/log.h b/common/log.h
index 8d3dc75..e06ac5a 100644
--- a/common/log.h
+++ b/common/log.h
@@ -14,4 +14,5 @@ QDebug debugStream(DebugLevel debugLevel, int line, const char* file, const char
14#define Trace() debugStream(DebugLevel::Trace, __LINE__, __FILE__, Q_FUNC_INFO) 14#define Trace() debugStream(DebugLevel::Trace, __LINE__, __FILE__, Q_FUNC_INFO)
15#define Log() debugStream(DebugLevel::Log, __LINE__, __FILE__, Q_FUNC_INFO) 15#define Log() debugStream(DebugLevel::Log, __LINE__, __FILE__, Q_FUNC_INFO)
16#define Warning() debugStream(DebugLevel::Warning, __LINE__, __FILE__, Q_FUNC_INFO) 16#define Warning() debugStream(DebugLevel::Warning, __LINE__, __FILE__, Q_FUNC_INFO)
17#define Error() debugStream(DebugLevel::Error, __LINE__, __FILE__, Q_FUNC_INFO) 17//FIXME Error clashes with Storage::Error and MessageQueue::Error
18#define ErrorMsg() debugStream(DebugLevel::Error, __LINE__, __FILE__, Q_FUNC_INFO)
diff --git a/synchronizer/listener.cpp b/synchronizer/listener.cpp
index 7481537..64e9c21 100644
--- a/synchronizer/listener.cpp
+++ b/synchronizer/listener.cpp
@@ -368,7 +368,7 @@ void Listener::loadResource()
368 Log() << "\tFacades: " << Akonadi2::FacadeFactory::instance().getFacade<Akonadi2::ApplicationDomain::Event>(m_resourceName)->type(); 368 Log() << "\tFacades: " << Akonadi2::FacadeFactory::instance().getFacade<Akonadi2::ApplicationDomain::Event>(m_resourceName)->type();
369 m_resource->configurePipeline(m_pipeline); 369 m_resource->configurePipeline(m_pipeline);
370 } else { 370 } else {
371 Error() << "Failed to load resource " << m_resourceName; 371 ErrorMsg() << "Failed to load resource " << m_resourceName;
372 } 372 }
373 //TODO: on failure ... what? 373 //TODO: on failure ... what?
374 //Enter broken state? 374 //Enter broken state?