aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-05-16 16:10:54 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-05-16 16:10:54 +0200
commita4307d86322206a47b57ce44cdc97c15f94b4a4b (patch)
tree3b7f8e18c4cc126bfbfef6b585d7e8cc65da75a3
parent60d95733617035f3fde5728e521e642b5f4e8e6c (diff)
downloadlibnitrokey-general.tar.gz
libnitrokey-general.tar.bz2
Handle LOGD1 on disabled logginggeneral
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--NitrokeyManager.cc1
-rw-r--r--libnitrokey/log.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 6a89a5b..966ed64 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -31,6 +31,7 @@
#include "libnitrokey/cxx_semantics.h"
#include <functional>
#include <stick10_commands.h>
+#include "libnitrokey/log.h"
std::mutex nitrokey::proto::send_receive_mtx;
diff --git a/libnitrokey/log.h b/libnitrokey/log.h
index 2a64bef..377d30b 100644
--- a/libnitrokey/log.h
+++ b/libnitrokey/log.h
@@ -99,6 +99,7 @@ namespace nitrokey {
#ifdef NO_LOG
#define LOG(string, level) while(false){}
#define LOGD(string) while(false){}
+#define LOGD1(string) while(false){}
#else
#define LOG(string, level) nitrokey::log::Log::instance()((string), (level))
#define LOGD1(string) nitrokey::log::Log::instance()((string), (nitrokey::log::Loglevel::DEBUG_L1))