Skip to content

Commit 9dd8d64

Browse files
committed
Restore default logger of network module to "p2p"
1 parent fe6c428 commit 9dd8d64

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

libraries/net/node.cpp

-14
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,6 @@
9191

9292
#include "node_impl.hxx"
9393

94-
//#define ENABLE_DEBUG_ULOGS
95-
96-
#ifdef DEFAULT_LOGGER
97-
# undef DEFAULT_LOGGER
98-
#endif
99-
#define DEFAULT_LOGGER "p2p"
100-
10194
#define INVOCATION_COUNTER(name) \
10295
static size_t total_ ## name ## _counter = 0; \
10396
static size_t active_ ## name ## _counter = 0; \
@@ -118,13 +111,6 @@
118111
} \
119112
} invocation_logger(&total_ ## name ## _counter, &active_ ## name ## _counter)
120113

121-
//log these messages even at warn level when operating on the test network
122-
#ifdef GRAPHENE_TEST_NETWORK
123-
#define testnetlog wlog
124-
#else
125-
#define testnetlog(...) do {} while (0)
126-
#endif
127-
128114
namespace graphene { namespace net { namespace detail {
129115

130116
void blockchain_tied_message_cache::block_accepted()

libraries/net/node_impl.hxx

+14
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ namespace bmi = boost::multi_index;
1616

1717
#define P2P_IN_DEDICATED_THREAD
1818

19+
//#define ENABLE_DEBUG_ULOGS
20+
21+
#ifdef DEFAULT_LOGGER
22+
# undef DEFAULT_LOGGER
23+
#endif
24+
#define DEFAULT_LOGGER "p2p"
25+
26+
//log these messages even at warn level when operating on the test network
27+
#ifdef GRAPHENE_TEST_NETWORK
28+
#define testnetlog wlog
29+
#else
30+
#define testnetlog(...) do {} while (0)
31+
#endif
32+
1933
/*******
2034
* A class to wrap std::unordered_set for multithreading
2135
*/

0 commit comments

Comments
 (0)