aboutsummaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-01-11 19:43:27 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-03-11 13:49:37 +0100
commitfad0335517096f435d76adce7833e213d3cc23d1 (patch)
tree0f07deb900e2348fa5699295313c1d3028d45270 /src/kernel
parentfa808fb74972637840675e310f6d4a0f06028d61 (diff)
scripted-diff: Replace error() with LogError()
This fixes the log output when -logsourcelocations is used. Also, instead of 'ERROR:', the log will now say '[error]', like other errors logged with LogError. -BEGIN VERIFY SCRIPT- sed -i --regexp-extended 's! error\("([^"]+)"! LogError("\1\\n"!g' $( git grep -l ' error(' ./src/ ) -END VERIFY SCRIPT-
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/coinstats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/coinstats.cpp b/src/kernel/coinstats.cpp
index 1903749674..81c496ab34 100644
--- a/src/kernel/coinstats.cpp
+++ b/src/kernel/coinstats.cpp
@@ -134,7 +134,7 @@ static bool ComputeUTXOStats(CCoinsView* view, CCoinsStats& stats, T hash_obj, c
outputs[key.n] = std::move(coin);
stats.coins_count++;
} else {
- error("%s: unable to read value", __func__);
+ LogError("%s: unable to read value\n", __func__);
return false;
}
pcursor->Next();