From fe0ed9eaae236fea10f968606c789e20751dc0a8 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 23 Jul 2022 02:18:20 +0700 Subject: [PATCH] Fixed build with -DWITH_DEBUG_LOG=ON --- src/base/kernel/private/DnsConfig.cpp | 4 ++-- src/base/kernel/private/Title.cpp | 4 ++-- src/base/net/tls/TlsConfig.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/base/kernel/private/DnsConfig.cpp b/src/base/kernel/private/DnsConfig.cpp index bd37e301..3914adb4 100644 --- a/src/base/kernel/private/DnsConfig.cpp +++ b/src/base/kernel/private/DnsConfig.cpp @@ -22,7 +22,7 @@ #include "base/tools/Arguments.h" -#ifdef APP_DEBUG +#if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS) # include "base/io/log/Log.h" # include "base/kernel/Config.h" #endif @@ -83,7 +83,7 @@ rapidjson::Value xmrig::DnsConfig::toJSON(rapidjson::Document &doc) const void xmrig::DnsConfig::print() const { -# ifdef APP_DEBUG +#if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS) LOG_DEBUG("%s " MAGENTA_BOLD("DNS") MAGENTA("