Skip to content

Commit ac12a99

Browse files
committed
wallet, logging: Switch LogInfo to LogError in AddWalletDescriptor
Seems like all of these cases are treated as errors, so it makes sense to use the corresponding log level. Change suggested by hodlinator in bitcoin#30343 (comment)
1 parent 20f4088 commit ac12a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4166,7 +4166,7 @@ util::Result<std::reference_wrapper<DescriptorScriptPubKeyMan>> CWallet::AddWall
41664166

41674167
auto spk_man = GetDescriptorScriptPubKeyMan(desc);
41684168
if (spk_man) {
4169-
LogInfo(m_log, "Update existing descriptor: %s\n", desc.descriptor->ToString());
4169+
LogError(m_log, "Update existing descriptor: %s\n", desc.descriptor->ToString());
41704170
if (auto spkm_res = spk_man->UpdateWalletDescriptor(desc); !spkm_res) {
41714171
return util::Error{util::ErrorString(spkm_res)};
41724172
}

0 commit comments

Comments
 (0)