Module: check_mk
Branch: master
Commit: 608620183aeaf5b2bfaca6c34b6169a7b4fa5c6e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=608620183aeaf5…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Sep 5 16:13:09 2016 +0200
Fetched Livestatus from downstream.
---
livestatus/src/Logger.cc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/livestatus/src/Logger.cc b/livestatus/src/Logger.cc
index 895da3e..6bdbb2c 100644
--- a/livestatus/src/Logger.cc
+++ b/livestatus/src/Logger.cc
@@ -81,13 +81,17 @@ LogLevel Logger::getLevel() {
return _level;
}
+#ifndef CMC
// cppcheck-suppress unusedFunction
+#endif
void Logger::setLevel(LogLevel level) {
lock_guard<mutex> lg(_mutex);
_level = level;
}
+#ifndef CMC
// cppcheck-suppress unusedFunction
+#endif
Handler *Logger::getHandler() {
lock_guard<mutex> lg(_mutex);
return _handler.get();
@@ -98,7 +102,9 @@ void Logger::setHandler(std::unique_ptr<Handler> handler) {
_handler = std::move(handler);
}
+#ifndef CMC
// cppcheck-suppress unusedFunction
+#endif
bool Logger::isLoggable(LogLevel level) { return level <= getLevel(); }
void Logger::log(const LogRecord &record) {