diff options
author | Anthony Towns <aj@erisian.com.au> | 2018-05-03 10:14:01 +1000 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-05-28 14:26:06 -0400 |
commit | 412987430c98e78ccda033ab1cf7a176a4c0b835 (patch) | |
tree | 5803f80fad55ff4262cd17a15c288980456a6fa6 /src/init.cpp | |
parent | 8ab4f282c06d67074b872dbda0be37636fdd5186 (diff) | |
download | bitcoin-412987430c98e78ccda033ab1cf7a176a4c0b835.tar.xz |
Replace OpenDebugLog() with StartLogging()
StartLogging() is used to mark the start of logging generically, whether
using -printtoconsole or -debuglogfile.
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 2bb270647a..fdfde689f9 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1249,10 +1249,10 @@ bool AppInitMain(InitInterfaces& interfaces) // and because this needs to happen before any other debug.log printing LogInstance().ShrinkDebugFile(); } - if (!LogInstance().OpenDebugLog()) { + } + if (!LogInstance().StartLogging()) { return InitError(strprintf("Could not open debug log file %s", LogInstance().m_file_path.string())); - } } if (!LogInstance().m_log_timestamps) |