diff options
author | Aaron Seigo <aseigo@kde.org> | 2015-12-23 17:02:56 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2015-12-23 17:02:56 +0100 |
commit | 72f52fb148380feb018faa9a94a8ad54bb93635f (patch) | |
tree | f599f6a11497107cc25e74b3029739419575b983 /akonadi2_cli/state.cpp | |
parent | df040bb75653245960cfbab3c1a28baee53fd3c4 (diff) | |
download | sink-72f52fb148380feb018faa9a94a8ad54bb93635f.tar.gz sink-72f52fb148380feb018faa9a94a8ad54bb93635f.zip |
debug level
Diffstat (limited to 'akonadi2_cli/state.cpp')
-rw-r--r-- | akonadi2_cli/state.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/akonadi2_cli/state.cpp b/akonadi2_cli/state.cpp index 9beba7e..08934a8 100644 --- a/akonadi2_cli/state.cpp +++ b/akonadi2_cli/state.cpp | |||
@@ -47,3 +47,16 @@ void State::printError(const QString &errorMessage, const QString &errorCode) | |||
47 | { | 47 | { |
48 | printLine("ERROR" + (errorCode.isEmpty() ? "" : " " + errorCode) + ": " + errorMessage); | 48 | printLine("ERROR" + (errorCode.isEmpty() ? "" : " " + errorCode) + ": " + errorMessage); |
49 | } | 49 | } |
50 | |||
51 | void State::setDebugLevel(unsigned int level) | ||
52 | { | ||
53 | if (level < 7) { | ||
54 | m_debugLevel = level; | ||
55 | } | ||
56 | } | ||
57 | |||
58 | unsigned int State::debugLevel() const | ||
59 | { | ||
60 | return m_debugLevel; | ||
61 | } | ||
62 | |||