diff options
| author | MarcoFalke <[email protected]> | 2019-01-25 15:54:49 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-01-29 15:30:24 -0500 |
| commit | 77777c5624e2f5416d85500e82b7c80e10ed01b6 (patch) | |
| tree | b6f69a898835496e248bd1e5d551184e6bbf4b33 /src/httpserver.cpp | |
| parent | Merge #15233: Prevent mutex lock fail even if --enable-debug (diff) | |
| download | discoin-77777c5624e2f5416d85500e82b7c80e10ed01b6.tar.xz discoin-77777c5624e2f5416d85500e82b7c80e10ed01b6.zip | |
log: Construct global logger on first use
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 ca60ea43a..b9ca037c9 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(g_logger->WillLogCategory(BCLog::LIBEVENT))) { - g_logger->DisableCategory(BCLog::LIBEVENT); + if (!UpdateHTTPServerLogging(LogInstance().WillLogCategory(BCLog::LIBEVENT))) { + LogInstance().DisableCategory(BCLog::LIBEVENT); } #ifdef WIN32 |