Skip to content

Commit 5b10ab0

Browse files
committed
[trivial] Add newlines to end of log messages.
Log messages should terminate with a '\n', or the following log will be written to the same line without a timestamp. Fix a couple of cases where the message is not terminated with a \n.
1 parent ad960f5 commit 5b10ab0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ void ThreadImport(std::vector<fs::path> vImportFiles)
668668
// scan for better chains in the block chain database, that are not yet connected in the active best chain
669669
CValidationState state;
670670
if (!ActivateBestChain(state, chainparams)) {
671-
LogPrintf("Failed to connect best block");
671+
LogPrintf("Failed to connect best block\n");
672672
StartShutdown();
673673
return;
674674
}

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ bool CWallet::MarkReplaced(const uint256& originalHash, const uint256& newHash)
878878

879879
bool success = true;
880880
if (!walletdb.WriteTx(wtx)) {
881-
LogPrintf("%s: Updating walletdb tx %s failed", __func__, wtx.GetHash().ToString());
881+
LogPrintf("%s: Updating walletdb tx %s failed\n", __func__, wtx.GetHash().ToString());
882882
success = false;
883883
}
884884

0 commit comments

Comments
 (0)