Skip to content

Commit

Permalink
Merge pull request #402 from evoskuil/master
Browse files Browse the repository at this point in the history
Remove wire log level.
  • Loading branch information
evoskuil committed May 15, 2024
2 parents 694b7cd + 841a92d commit 42a1cfb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions include/bitcoin/network/define.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#define WITH_LOGS
#define WITH_LOGP
#define WITH_LOGX
////#define WITH_LOGW
#define WITH_LOGR
#define WITH_LOGF
#define WITH_LOGQ
Expand Down Expand Up @@ -92,11 +91,6 @@
#define HAVE_LOGX
#endif

/// Wire communication (currently unused).
#if defined(WITH_LOGW)
#define HAVE_LOGW
#endif

/// Remote (peer errors).
#if defined(WITH_LOGR)
#define HAVE_LOGR
Expand Down
9 changes: 0 additions & 9 deletions include/bitcoin/network/log/levels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ enum : uint8_t
session, // Sessions/connect/accept
protocol, // Protocols
proxy, // proXy/socket/channel
wire, // Wire sharking
remote, // Remote behavior
fault, // Fault
quitting, // Quitting
Expand Down Expand Up @@ -108,14 +107,6 @@ enum : uint8_t
#define LOGX(message)
#endif

#if defined(HAVE_LOGW)
constexpr auto wire_defined = true;
#define LOGW(message) LOG(wire, message)
#else
constexpr auto wire_defined = false;
#define LOGW(message)
#endif

#if defined(HAVE_LOGR)
constexpr auto remote_defined = true;
#define LOGR(message) LOG(remote, message)
Expand Down
1 change: 0 additions & 1 deletion src/p2p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ p2p::p2p(const settings& settings, const logger& log) NOEXCEPT
////LOG_LOG("Session log compiled.....: ", session_defined);
////LOG_LOG("Protocol log compiled....: ", protocol_defined);
////LOG_LOG("ProXy log compiled.......: ", proxy_defined);
////LOG_LOG("Wire log compiled........: ", wire_defined);
////LOG_LOG("Remote log compiled......: ", remote_defined);
////LOG_LOG("Fault log compiled.......: ", fault_defined);
////LOG_LOG("Quitting log compiled....: ", quitting_defined);
Expand Down

0 comments on commit 42a1cfb

Please sign in to comment.