diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-18 10:24:36 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-18 10:24:36 +0200 |
commit | bbb7c128488d0bc1dbedd4fe9f8a7a4de778705b (patch) | |
tree | 5672a29804e6bf2b42bac896c1f5e39249a298df | |
parent | 90f0623b46794af59346b662bc5e823195a0eeff (diff) | |
download | sink-bbb7c128488d0bc1dbedd4fe9f8a7a4de778705b.tar.gz sink-bbb7c128488d0bc1dbedd4fe9f8a7a4de778705b.zip |
Renamed the Error log macro to ErrorMsg because of nameclashes
With Storage::Error. Perhaps turn to akLog, akError, ...?
-rw-r--r-- | common/log.h | 3 | ||||
-rw-r--r-- | synchronizer/listener.cpp | 2 |
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? |