Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove wire log level. #402

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions include/bitcoin/network/define.hpp
Original file line number Diff line number Diff line change
@@ -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
@@ -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
9 changes: 0 additions & 9 deletions include/bitcoin/network/log/levels.hpp
Original file line number Diff line number Diff line change
@@ -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
@@ -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)
1 change: 0 additions & 1 deletion src/p2p.cpp
Original file line number Diff line number Diff line change
@@ -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);