diff --git a/src/base/kernel/private/DnsConfig.cpp b/src/base/kernel/private/DnsConfig.cpp index bd37e301c..3914adb4b 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("