aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-07-31 16:41:06 +0200
committerLuke Dashjr <luke-jr+git@utopios.org>2015-09-22 00:43:11 +0000
commit7ff9d122e4c3b4076146631893194b01642c58e2 (patch)
tree090067dd10a7962168f5e315c3c46fa8f7f42251 /src/rpcserver.cpp
parent5a3913361d0c045db69932ac5f152c4cf76e13cb (diff)
downloadbitcoin-7ff9d122e4c3b4076146631893194b01642c58e2.tar.xz
Make sure LogPrintf strings are line-terminated
Fix the cases where LogPrint[f] was accidentally called without line terminator, which resulted in concatenated log lines. (see e.g. #6492)
Diffstat (limited to 'src/rpcserver.cpp')
-rw-r--r--src/rpcserver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp
index 3f74517a67..a600845b58 100644
--- a/src/rpcserver.cpp
+++ b/src/rpcserver.cpp
@@ -755,14 +755,14 @@ void StopRPCThreads()
{
acceptor->cancel(ec);
if (ec)
- LogPrintf("%s: Warning: %s when cancelling acceptor", __func__, ec.message());
+ LogPrintf("%s: Warning: %s when cancelling acceptor\n", __func__, ec.message());
}
rpc_acceptors.clear();
BOOST_FOREACH(const PAIRTYPE(std::string, boost::shared_ptr<deadline_timer>) &timer, deadlineTimers)
{
timer.second->cancel(ec);
if (ec)
- LogPrintf("%s: Warning: %s when cancelling timer", __func__, ec.message());
+ LogPrintf("%s: Warning: %s when cancelling timer\n", __func__, ec.message());
}
deadlineTimers.clear();