diff options
| author | Jim Posen <[email protected]> | 2018-04-11 13:02:01 -0700 |
|---|---|---|
| committer | Jim Posen <[email protected]> | 2018-04-27 16:10:02 -0700 |
| commit | 3316a9ebb66171937efddb213daed64fe51c4082 (patch) | |
| tree | d70ee40dd461cb472fab97e13c4af86dc3180a9e /src/httpserver.cpp | |
| parent | util: Move debug file management functions into Logger. (diff) | |
| download | discoin-3316a9ebb66171937efddb213daed64fe51c4082.tar.xz discoin-3316a9ebb66171937efddb213daed64fe51c4082.zip | |
util: Encapsulate logCategories within BCLog::Logger.
Diffstat (limited to 'src/httpserver.cpp')
| -rw-r--r-- | src/httpserver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp index b8b338dfb..bd08b04c0 100644 --- a/src/httpserver.cpp +++ b/src/httpserver.cpp @@ -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 |