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

@@ -284,7 +284,7 @@ void Shutdown(NodeContext& node)
static Mutex g_shutdown_mutex;
TRY_LOCK(g_shutdown_mutex, lock_shutdown);
if (!lock_shutdown) return;
LogPrintf("%s: In progress...\n", __func__);
LogInfo("Shutdown in progress...");
Assert(node.args);
/// Note: Shutdown() must be able to handle cases in which initialization failed part of the way,
@@ -395,7 +395,7 @@ void Shutdown(NodeContext& node)
RemovePidFile(*node.args);
LogPrintf("%s: done\n", __func__);
LogInfo("Shutdown done");
}
/**