mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
refactor: account for requiring libevent 2.1.8+
This commit is contained in:
parent
aaf72d62c1
commit
0598f36852
3 changed files with 3 additions and 27 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue