mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-07 14:18:18 +02:00
Fix compatibility with -debuglogfile command-line option
This change avoids hardcoding the "debug.log" filename, ensuring compatibility with custom filenames provided via the `-debuglogfile` command-line option.
This commit is contained in:
@@ -224,7 +224,7 @@ static bool AppInit(NodeContext& node)
|
||||
if (token) { // Success
|
||||
exit(EXIT_SUCCESS);
|
||||
} else { // fRet = false or token read error (premature exit).
|
||||
tfm::format(std::cerr, "Error during initialization - check debug.log for details\n");
|
||||
tfm::format(std::cerr, "Error during initialization - check %s for details\n", fs::PathToString(LogInstance().m_file_path.filename()));
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user