diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 323e7577a4d..32db3e7282e 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -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); } } diff --git a/src/init/common.cpp b/src/init/common.cpp index cb35c1b4f62..f65e3c92d13 100644 --- a/src/init/common.cpp +++ b/src/init/common.cpp @@ -40,7 +40,7 @@ void AddLoggingArgs(ArgsManager& argsman) argsman.AddArg("-loglevelalways", strprintf("Always prepend a category and level (default: %u)", DEFAULT_LOGLEVELALWAYS), ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST); argsman.AddArg("-logratelimit", strprintf("Apply rate limiting to unconditional logging to mitigate disk-filling attacks (default: %u)", BCLog::DEFAULT_LOGRATELIMIT), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::DEBUG_TEST); argsman.AddArg("-printtoconsole", "Send trace/debug info to console (default: 1 when no -daemon. To disable logging to file, set -nodebuglogfile)", ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST); - argsman.AddArg("-shrinkdebugfile", "Shrink debug.log file on client startup (default: 1 when no -debug)", ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST); + argsman.AddArg("-shrinkdebugfile", "Shrink debug log file on client startup (default: 1 when no -debug)", ArgsManager::ALLOW_ANY, OptionsCategory::DEBUG_TEST); } void SetLoggingOptions(const ArgsManager& args) diff --git a/src/node/abort.cpp b/src/node/abort.cpp index a7c815363b2..9483e56ae9a 100644 --- a/src/node/abort.cpp +++ b/src/node/abort.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -18,7 +19,7 @@ namespace node { void AbortNode(const std::function& shutdown_request, std::atomic& exit_status, const bilingual_str& message, node::Warnings* warnings) { if (warnings) warnings->Set(Warning::FATAL_INTERNAL_ERROR, message); - InitError(_("A fatal internal error occurred, see debug.log for details: ") + message); + InitError(strprintf(_("A fatal internal error occurred, see %s for details: %s"), fs::PathToString(LogInstance().m_file_path.filename()), message)); exit_status.store(EXIT_FAILURE); if (shutdown_request && !shutdown_request()) { LogError("Failed to send shutdown signal\n"); diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 5f9885fdee2..3a5b98f0f2f 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1270,7 +1270,7 @@ static RPCHelpMan verifychain() {"nblocks", RPCArg::Type::NUM, RPCArg::DefaultHint{strprintf("%d, 0=all", DEFAULT_CHECKBLOCKS)}, "The number of blocks to check."}, }, RPCResult{ - RPCResult::Type::BOOL, "", "Verification finished successfully. If false, check debug.log for reason."}, + RPCResult::Type::BOOL, "", "Verification finished successfully. If false, check debug log for reason."}, RPCExamples{ HelpExampleCli("verifychain", "") + HelpExampleRpc("verifychain", "") diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp index ac472bf36a1..1a94d10bf9f 100644 --- a/src/rpc/mempool.cpp +++ b/src/rpc/mempool.cpp @@ -1152,7 +1152,7 @@ static RPCHelpMan importmempool() }; if (!node::LoadMempool(mempool, load_path, chainstate, std::move(opts))) { - throw JSONRPCError(RPC_MISC_ERROR, "Unable to import mempool file, see debug.log for details."); + throw JSONRPCError(RPC_MISC_ERROR, "Unable to import mempool file, see debug log for details."); } UniValue ret{UniValue::VOBJ};