mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge 0853d8d2fd into merged_master (Bitcoin PR #16112)
This commit is contained in:
commit
e596f32b6f
4 changed files with 62 additions and 40 deletions
10
src/init.cpp
10
src/init.cpp
|
|
@ -901,12 +901,6 @@ void InitLogging()
|
|||
{
|
||||
LogInstance().m_print_to_file = !gArgs.IsArgNegated("-debuglogfile");
|
||||
LogInstance().m_file_path = AbsPathForConfigVal(gArgs.GetArg("-debuglogfile", DEFAULT_DEBUGLOGFILE));
|
||||
|
||||
// Add newlines to the logfile to distinguish this execution from the last
|
||||
// one; called before console logging is set up, so this is only sent to
|
||||
// debug.log.
|
||||
LogPrintf("\n\n\n\n\n");
|
||||
|
||||
LogInstance().m_print_to_console = gArgs.GetBoolArg("-printtoconsole", !gArgs.GetBoolArg("-daemon", false));
|
||||
LogInstance().m_log_timestamps = gArgs.GetBoolArg("-logtimestamps", DEFAULT_LOGTIMESTAMPS);
|
||||
LogInstance().m_log_time_micros = gArgs.GetBoolArg("-logtimemicros", DEFAULT_LOGTIMEMICROS);
|
||||
|
|
@ -1288,10 +1282,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue