MCPcopy Create free account
hub / github.com/ElementsProject/elements / UpdateHTTPServerLogging

Function UpdateHTTPServerLogging

src/httpserver.cpp:407–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407bool UpdateHTTPServerLogging(bool enable) {
408#if LIBEVENT_VERSION_NUMBER >= 0x02010100
409 if (enable) {
410 event_enable_debug_logging(EVENT_DBG_ALL);
411 } else {
412 event_enable_debug_logging(EVENT_DBG_NONE);
413 }
414 return true;
415#else
416 // Can't update libevent logging if version < 02010100
417 return false;
418#endif
419}
420
421static std::thread g_thread_http;
422static std::vector<std::thread> g_thread_http_workers;

Callers 2

InitHTTPServerFunction · 0.85
loggingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected