diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-13 22:01:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-13 22:01:31 +0200 |
commit | 5807b5dc09e5532532753ba2bb48f014d20ad5a0 (patch) | |
tree | 3f60a89f5a131c0bb328241fd83b0df474c254a9 /common/resourceaccess.cpp | |
parent | b6d5d206de4d02149c6530236154283bf834087a (diff) | |
download | sink-5807b5dc09e5532532753ba2bb48f014d20ad5a0.tar.gz sink-5807b5dc09e5532532753ba2bb48f014d20ad5a0.zip |
A way to set the debuglevel.
Unittests can set the level themselves (so i.e. benchmarks don't print
a shitload of messages), while in normal operation we can set it from
the environment. There's no override currently, but first things first.
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 ef4e64c..84bc4ea 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -38,9 +38,9 @@ | |||
38 | #include <QProcess> | 38 | #include <QProcess> |
39 | 39 | ||
40 | #undef Trace | 40 | #undef Trace |
41 | #define Trace() debugStream(DebugLevel::Trace, __LINE__, __FILE__, Q_FUNC_INFO, "ResourceAccess") | 41 | #define Trace() Akonadi2::Log::debugStream(Akonadi2::Log::DebugLevel::Trace, __LINE__, __FILE__, Q_FUNC_INFO, "ResourceAccess") |
42 | #undef Log | 42 | #undef Log |
43 | #define Log(IDENTIFIER) debugStream(DebugLevel::Log, __LINE__, __FILE__, Q_FUNC_INFO, "ResourceAccess("+IDENTIFIER+")") | 43 | #define Log(IDENTIFIER) Akonadi2::Log::debugStream(Akonadi2::Log::DebugLevel::Log, __LINE__, __FILE__, Q_FUNC_INFO, "ResourceAccess("+IDENTIFIER+")") |
44 | 44 | ||
45 | namespace Akonadi2 | 45 | namespace Akonadi2 |
46 | { | 46 | { |