aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJim Posen <jimpo@coinbase.com>2018-04-11 11:12:51 -0700
committerJim Posen <jimpo@coinbase.com>2018-04-27 16:10:00 -0700
commit6a6d764ca5616e5d1f1848b0010613c49bd38e61 (patch)
tree5cf9465c2d303b9d8fbc8ad798ac78e60dea063b /src/init.cpp
parentf55f4fcf05a53fdf618b4c69ddcf4c43b14e84c2 (diff)
downloadbitcoin-6a6d764ca5616e5d1f1848b0010613c49bd38e61.tar.xz
util: Move debug file management functions into Logger.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 814fd39448..c14597d517 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1235,10 +1235,11 @@ bool AppInitMain()
if (gArgs.GetBoolArg("-shrinkdebugfile", logCategories == BCLog::NONE)) {
// Do this first since it both loads a bunch of debug.log into memory,
// and because this needs to happen before any other debug.log printing
- ShrinkDebugFile();
+ g_logger->ShrinkDebugFile();
}
- if (!OpenDebugLog()) {
- return InitError(strprintf("Could not open debug log file %s", GetDebugLogPath().string()));
+ if (!g_logger->OpenDebugLog()) {
+ return InitError(strprintf("Could not open debug log file %s",
+ g_logger->GetDebugLogPath().string()));
}
}