log: Remove function name from init logs

It is redundant with -logsourcelocations and the log messages are
clearer without it.

Also, remove a double-space.

Also, add braces around `if` touched in the next commit.

This tiny behavior change requires a test fixup.
This commit is contained in:
MarcoFalke
2025-07-24 16:28:56 +02:00
parent e17fb86382
commit fa183761cb
7 changed files with 14 additions and 13 deletions

View File

@@ -114,8 +114,9 @@ bool StartLogging(const ArgsManager& args)
fs::PathToString(LogInstance().m_file_path))));
}
if (!LogInstance().m_log_timestamps)
if (!LogInstance().m_log_timestamps) {
LogPrintf("Startup time: %s\n", FormatISO8601DateTime(GetTime()));
}
LogPrintf("Default data directory %s\n", fs::PathToString(GetDefaultDataDir()));
LogPrintf("Using data directory %s\n", fs::PathToString(gArgs.GetDataDirNet()));