From 412987430c98e78ccda033ab1cf7a176a4c0b835 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Thu, 3 May 2018 10:14:01 +1000 Subject: Replace OpenDebugLog() with StartLogging() StartLogging() is used to mark the start of logging generically, whether using -printtoconsole or -debuglogfile. --- src/init.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 2bb270647..fdfde689f 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) -- cgit v1.2.3