Changeset View
Changeset View
Standalone View
Standalone View
src/httpserver.cpp
Show First 20 Lines • Show All 378 Lines • ▼ Show 20 Lines | bool InitHTTPServer(Config &config) { | ||||
} | } | ||||
// Redirect libevent's logging to our own log | // Redirect libevent's logging to our own log | ||||
event_set_log_callback(&libevent_log_cb); | event_set_log_callback(&libevent_log_cb); | ||||
// Update libevent's log handling. Returns false if our version of | // Update libevent's log handling. Returns false if our version of | ||||
// libevent doesn't support debug logging, in which case we should | // libevent doesn't support debug logging, in which case we should | ||||
// clear the BCLog::LIBEVENT flag. | // clear the BCLog::LIBEVENT flag. | ||||
if (!UpdateHTTPServerLogging( | if (!UpdateHTTPServerLogging( | ||||
GetLogger().WillLogCategory(BCLog::LIBEVENT))) { | LogInstance().WillLogCategory(BCLog::LIBEVENT))) { | ||||
GetLogger().DisableCategory(BCLog::LIBEVENT); | LogInstance().DisableCategory(BCLog::LIBEVENT); | ||||
} | } | ||||
#ifdef WIN32 | #ifdef WIN32 | ||||
evthread_use_windows_threads(); | evthread_use_windows_threads(); | ||||
#else | #else | ||||
evthread_use_pthreads(); | evthread_use_pthreads(); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 302 Lines • Show Last 20 Lines |