util: Encapsulate logCategories within BCLog::Logger.

This commit is contained in:
Jim Posen committed 2018-04-27 16:10:02 -07:00
1 parent 6a6d764ca5
commit 3316a9ebb6
7 files changed
+55 -28

No files matched your search

+2 -2
View File
@@ -364,8 +364,8 @@ bool InitHTTPServer()
// Update libevent's log handling. Returns false if our version of
// libevent doesn't support debug logging, in which case we should
// clear the BCLog::LIBEVENT flag.
if (!UpdateHTTPServerLogging(logCategories & BCLog::LIBEVENT)) {
logCategories &= ~BCLog::LIBEVENT;
if (!UpdateHTTPServerLogging(g_logger->WillLogCategory(BCLog::LIBEVENT))) {
g_logger->DisableCategory(BCLog::LIBEVENT);
}
#ifdef WIN32