aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-01-11 20:27:28 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-06-10 13:46:56 +0200
commitfae3a1f0065064d80ab4c0375a9eaeb666c5dd55 (patch)
tree23c14ee702cff02d751976686ed505d3f427ff1b /src/node
parentcad127235e307d7de0e9cc04708dbd31aa6c24b0 (diff)
downloadbitcoin-fae3a1f0065064d80ab4c0375a9eaeb666c5dd55.tar.xz
log: use error level for critical log messages
As per doc/developer-notes#logging, LogError should be used for severe problems that require the node to shut down. Co-Authored-By: stickies-v <stickies-v@protonmail.com>
Diffstat (limited to 'src/node')
-rw-r--r--src/node/interfaces.cpp2
-rw-r--r--src/node/kernel_notifications.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp
index 216f44ab9e..f00e557ce7 100644
--- a/src/node/interfaces.cpp
+++ b/src/node/interfaces.cpp
@@ -123,7 +123,7 @@ public:
void startShutdown() override
{
if (!(*Assert(Assert(m_context)->shutdown))()) {
- LogPrintf("Error: failed to send shutdown signal\n");
+ LogError("Failed to send shutdown signal\n");
}
// Stop RPC for clean shutdown if any of waitfor* commands is executed.
if (args().GetBoolArg("-server", false)) {
diff --git a/src/node/kernel_notifications.cpp b/src/node/kernel_notifications.cpp
index e326d4a1f2..a3cfb31c9a 100644
--- a/src/node/kernel_notifications.cpp
+++ b/src/node/kernel_notifications.cpp
@@ -61,7 +61,7 @@ kernel::InterruptResult KernelNotifications::blockTip(SynchronizationState state
uiInterface.NotifyBlockTip(state, &index);
if (m_stop_at_height && index.nHeight >= m_stop_at_height) {
if (!m_shutdown()) {
- LogPrintf("Error: failed to send shutdown signal after reaching stop height\n");
+ LogError("Failed to send shutdown signal after reaching stop height\n");
}
return kernel::Interrupted{};
}