From 72f52fb148380feb018faa9a94a8ad54bb93635f Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Wed, 23 Dec 2015 17:02:56 +0100 Subject: debug level --- akonadi2_cli/state.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'akonadi2_cli/state.cpp') 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) { printLine("ERROR" + (errorCode.isEmpty() ? "" : " " + errorCode) + ": " + errorMessage); } + +void State::setDebugLevel(unsigned int level) +{ + if (level < 7) { + m_debugLevel = level; + } +} + +unsigned int State::debugLevel() const +{ + return m_debugLevel; +} + -- cgit v1.2.3