From 453e2b3456977b75ccd705fa90775ece0e778519 Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 24 Nov 2022 21:54:43 +0100 Subject: [PATCH] wallet2: minor logging improvements --- src/wallet/wallet2.cpp | 2 +- src/wallet/wallet2.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 5c1cfbbd..9764eab0 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2370,7 +2370,7 @@ void wallet2::refresh(size_t & blocks_fetched, bool& received_money, std::atomic } - WLT_LOG("Refresh done, blocks received: " << blocks_fetched << ", balance: " << print_money(balance()) << ", unlocked: " << print_money(unlocked_balance()), blocks_fetched > 0 ? LOG_LEVEL_1 : LOG_LEVEL_2); + WLT_LOG("Refresh done, blocks received: " << blocks_fetched << ", balance: " << print_money_brief(balance()) << ", unlocked: " << print_money_brief(unlocked_balance()), blocks_fetched > 0 ? LOG_LEVEL_1 : LOG_LEVEL_2); } //---------------------------------------------------------------------------------------------------- bool wallet2::handle_expiration_list(uint64_t tx_expiration_ts_median) diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 70e6eb10..b3e3ca38 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -1311,7 +1311,7 @@ namespace tools ptc.is_derived_from_coinbase = true; else ptc.is_derived_from_coinbase = false; - WLT_LOG_L0("Spent key out, transfer #" << tr_index << ", amount: " << currency::print_money(td.amount()) << ", with tx: " << get_transaction_hash(tx) << ", at height " << ptc.height << + WLT_LOG_L0("Spent key out, transfer #" << tr_index << ", amount: " << currency::print_money_brief(td.amount()) << ", with tx: " << get_transaction_hash(tx) << ", at height " << ptc.height << "; flags: " << flags_before << " -> " << td.m_flags); ptc.mtd.spent_indices.push_back(ptc.i); remove_transfer_from_expiration_list(tr_index);