From a4307d86322206a47b57ce44cdc97c15f94b4a4b Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 16 May 2018 16:10:54 +0200 Subject: Handle LOGD1 on disabled logging Signed-off-by: Szczepan Zalega --- NitrokeyManager.cc | 1 + libnitrokey/log.h | 1 + 2 files changed, 2 insertions(+) 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 #include +#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)) -- cgit v1.2.3