From ce70ebd2a4bf083d6b100ce8fad769e84bc09771 Mon Sep 17 00:00:00 2001 From: Brannon King Date: Thu, 13 Feb 2020 10:51:33 -0700 Subject: [PATCH] reduce output on syncing testnet --- src/wallet/wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 021eae889..88d1bafa2 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1030,7 +1030,8 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn, bool fFlushOnClose) } //// debug print - WalletLogPrintf("AddToWallet %s %s%s\n", wtxIn.GetHash().ToString(), (fInsertedNew ? "new" : ""), (fUpdated ? "update" : "")); + if (LogAcceptCategory(BCLog::DB)) + WalletLogPrintf("AddToWallet %s%s%s\n", wtxIn.GetHash().ToString(), (fInsertedNew ? " new" : ""), (fUpdated ? " update" : "")); // Write to disk if (fInsertedNew || fUpdated)