summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-11 15:55:11 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-11 15:55:11 +0200
commit330f9418cac14664b2f80e0c2a5a89295d8ec51f (patch)
tree069960f398641c8a2f455c310b30c94babb946bd
parentc427259852a34fea49687b9ba66a6eadbe8ece9c (diff)
downloadsink-330f9418cac14664b2f80e0c2a5a89295d8ec51f.tar.gz
sink-330f9418cac14664b2f80e0c2a5a89295d8ec51f.zip
Starting to get rid of the SINK_DEBUG_AREA
-rw-r--r--common/log.h8
-rw-r--r--common/storage_lmdb.cpp3
2 files changed, 4 insertions, 7 deletions
diff --git a/common/log.h b/common/log.h
index abb1e55..42193b7 100644
--- a/common/log.h
+++ b/common/log.h
@@ -102,10 +102,10 @@ static const char *getComponentName() { return nullptr; }
102#define SinkWarning_(COMPONENT, AREA) SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Warning, AREA, COMPONENT) 102#define SinkWarning_(COMPONENT, AREA) SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Warning, AREA, COMPONENT)
103#define SinkError_(COMPONENT, AREA) SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Error, AREA, COMPONENT) 103#define SinkError_(COMPONENT, AREA) SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Error, AREA, COMPONENT)
104 104
105#define SinkTrace() SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Trace, s_sinkDebugArea, getComponentName()) 105#define SinkTrace() SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Trace, __FILE__, getComponentName())
106#define SinkLog() SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Log, s_sinkDebugArea, getComponentName()) 106#define SinkLog() SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Log, __FILE__, getComponentName())
107#define SinkWarning() SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Warning, s_sinkDebugArea, getComponentName()) 107#define SinkWarning() SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Warning, __FILE__, getComponentName())
108#define SinkError() SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Error, s_sinkDebugArea, getComponentName()) 108#define SinkError() SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Error, __FILE__, getComponentName())
109 109
110#define SinkTraceCtx(CTX) SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Trace, CTX.name, nullptr) 110#define SinkTraceCtx(CTX) SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Trace, CTX.name, nullptr)
111#define SinkLogCtx(CTX) SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Log, CTX.name, nullptr) 111#define SinkLogCtx(CTX) SINK_DEBUG_STREAM_IMPL(Sink::Log::DebugLevel::Log, CTX.name, nullptr)
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp
index ef4bd17..c3240f6 100644
--- a/common/storage_lmdb.cpp
+++ b/common/storage_lmdb.cpp
@@ -35,9 +35,6 @@
35#include <lmdb.h> 35#include <lmdb.h>
36#include "log.h" 36#include "log.h"
37 37
38SINK_DEBUG_AREA("storage")
39// SINK_DEBUG_COMPONENT(d->storageRoot.toLatin1() + '/' + d->name.toLatin1())
40
41namespace Sink { 38namespace Sink {
42namespace Storage { 39namespace Storage {
43 40