mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-07 03:19:28 +00:00
Fixed build with -DWITH_DEBUG_LOG=ON
This commit is contained in:
parent
d8f39ebef3
commit
fe0ed9eaae
3 changed files with 6 additions and 6 deletions
|
@ -22,7 +22,7 @@
|
||||||
#include "base/tools/Arguments.h"
|
#include "base/tools/Arguments.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef APP_DEBUG
|
#if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS)
|
||||||
# include "base/io/log/Log.h"
|
# include "base/io/log/Log.h"
|
||||||
# include "base/kernel/Config.h"
|
# include "base/kernel/Config.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -83,7 +83,7 @@ rapidjson::Value xmrig::DnsConfig::toJSON(rapidjson::Document &doc) const
|
||||||
|
|
||||||
void xmrig::DnsConfig::print() const
|
void xmrig::DnsConfig::print() const
|
||||||
{
|
{
|
||||||
# ifdef APP_DEBUG
|
#if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS)
|
||||||
LOG_DEBUG("%s " MAGENTA_BOLD("DNS")
|
LOG_DEBUG("%s " MAGENTA_BOLD("DNS")
|
||||||
MAGENTA("<ipv6=") CYAN("%d")
|
MAGENTA("<ipv6=") CYAN("%d")
|
||||||
MAGENTA(", ttl=") CYAN("%u")
|
MAGENTA(", ttl=") CYAN("%u")
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef APP_DEBUG
|
#if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS)
|
||||||
# include "base/io/log/Log.h"
|
# include "base/io/log/Log.h"
|
||||||
# include "base/kernel/Config.h"
|
# include "base/kernel/Config.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -89,7 +89,7 @@ xmrig::String xmrig::Title::value() const
|
||||||
|
|
||||||
void xmrig::Title::print() const
|
void xmrig::Title::print() const
|
||||||
{
|
{
|
||||||
# ifdef APP_DEBUG
|
# if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS)
|
||||||
LOG_DEBUG("%s " MAGENTA_BOLD("TITLE")
|
LOG_DEBUG("%s " MAGENTA_BOLD("TITLE")
|
||||||
MAGENTA("<enabled=") CYAN("%d")
|
MAGENTA("<enabled=") CYAN("%d")
|
||||||
MAGENTA(", value=") "\"%s\""
|
MAGENTA(", value=") "\"%s\""
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "base/net/tls/TlsGen.h"
|
#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/io/log/Log.h"
|
||||||
# include "base/kernel/Config.h"
|
# include "base/kernel/Config.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -148,7 +148,7 @@ rapidjson::Value xmrig::TlsConfig::toJSON(rapidjson::Document &doc) const
|
||||||
|
|
||||||
void xmrig::TlsConfig::print() const
|
void xmrig::TlsConfig::print() const
|
||||||
{
|
{
|
||||||
# ifdef APP_DEBUG
|
# if defined(APP_DEBUG) && defined(XMRIG_FEATURE_EVENTS)
|
||||||
LOG_DEBUG("%s " MAGENTA_BOLD("TLS")
|
LOG_DEBUG("%s " MAGENTA_BOLD("TLS")
|
||||||
MAGENTA("<enabled=") CYAN("%d")
|
MAGENTA("<enabled=") CYAN("%d")
|
||||||
MAGENTA(", protocols=") CYAN("%u")
|
MAGENTA(", protocols=") CYAN("%u")
|
||||||
|
|
Loading…
Reference in a new issue