MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / UpdateHTTPServerLogging

Function UpdateHTTPServerLogging

src/httpserver.cpp:412–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412bool UpdateHTTPServerLogging(bool enable) {
413#if LIBEVENT_VERSION_NUMBER >= 0x02010100
414 if (enable) {
415 event_enable_debug_logging(EVENT_DBG_ALL);
416 } else {
417 event_enable_debug_logging(EVENT_DBG_NONE);
418 }
419 return true;
420#else
421 // Can't update libevent logging if version < 02010100
422 return false;
423#endif
424}
425
426std::thread threadHTTP;
427std::future<bool> threadResult;

Callers 2

InitHTTPServerFunction · 0.85
loggingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected