Fixed build with -DWITH_DEBUG_LOG=ON

This commit is contained in:
XMRig
2022-07-23 02:18:20 +07:00
parent d8f39ebef3
commit fe0ed9eaae
3 changed files with 6 additions and 6 deletions

View File

@ -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("<ipv6=") CYAN("%d")
MAGENTA(", ttl=") CYAN("%u")

View File

@ -31,7 +31,7 @@
#include "version.h"
#ifdef APP_DEBUG
#if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS)
# include "base/io/log/Log.h"
# include "base/kernel/Config.h"
#endif
@ -89,7 +89,7 @@ xmrig::String xmrig::Title::value() const
void xmrig::Title::print() const
{
# ifdef APP_DEBUG
# if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS)
LOG_DEBUG("%s " MAGENTA_BOLD("TITLE")
MAGENTA("<enabled=") CYAN("%d")
MAGENTA(", value=") "\"%s\""

View File

@ -24,7 +24,7 @@
#include "base/net/tls/TlsGen.h"
#ifdef APP_DEBUG
#if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS)
# include "base/io/log/Log.h"
# include "base/kernel/Config.h"
#endif
@ -148,7 +148,7 @@ rapidjson::Value xmrig::TlsConfig::toJSON(rapidjson::Document &doc) const
void xmrig::TlsConfig::print() const
{
# ifdef APP_DEBUG
# if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS)
LOG_DEBUG("%s " MAGENTA_BOLD("TLS")
MAGENTA("<enabled=") CYAN("%d")
MAGENTA(", protocols=") CYAN("%u")