doc: Fix outdated dev comment about logging

This commit is contained in:
MarcoFalke
2024-06-28 17:42:40 +02:00
parent 2f6dca4d1c
commit fafb7875e1

View File

@@ -839,7 +839,7 @@ std::set<BlockFilterType> g_enabled_filter_types;
{
// Rather than throwing std::bad-alloc if allocation fails, terminate
// immediately to (try to) avoid chain corruption.
// Since LogPrintf may itself allocate memory, set the handler directly
// Since logging may itself allocate memory, set the handler directly
// to terminate first.
std::set_new_handler(std::terminate);
LogError("Out of memory. Terminating.\n");