mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
refactor: account for requiring libevent 2.1.8+
This commit is contained in:
committed by
Hennadii Stepanov
parent
aaf72d62c1
commit
0598f36852
@@ -403,17 +403,12 @@ bool InitHTTPServer()
|
||||
}
|
||||
|
||||
bool UpdateHTTPServerLogging(bool enable) {
|
||||
#if LIBEVENT_VERSION_NUMBER >= 0x02010100
|
||||
if (enable) {
|
||||
event_enable_debug_logging(EVENT_DBG_ALL);
|
||||
} else {
|
||||
event_enable_debug_logging(EVENT_DBG_NONE);
|
||||
}
|
||||
return true;
|
||||
#else
|
||||
// Can't update libevent logging if version < 02010100
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
static std::thread g_thread_http;
|
||||
|
||||
Reference in New Issue
Block a user