aboutsummaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-01 22:14:40 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-01 22:53:10 +0000
commitc17a1d431b3e1c39f7ec79f961ee1f0449793bb3 (patch)
treef2beb7f27b40e52ba2e612555e7aeb1e84feb1cf /src/daemon
parentMerge pull request #4721 (diff)
downloadmonero-c17a1d431b3e1c39f7ec79f961ee1f0449793bb3.tar.xz
daemon: use msg_writer, not cout, to display information
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/rpc_command_executor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index 9a0603a10..f17465391 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -567,8 +567,8 @@ bool t_rpc_command_executor::print_blockchain_info(uint64_t start_block_index, u
for (auto & header : res.headers)
{
if (!first)
- std::cout << std::endl;
- std::cout
+ tools::msg_writer() << "" << std::endl;
+ tools::msg_writer()
<< "height: " << header.height << ", timestamp: " << header.timestamp
<< ", size: " << header.block_size << ", weight: " << header.block_weight << ", transactions: " << header.num_txes << std::endl
<< "major version: " << (unsigned)header.major_version << ", minor version: " << (unsigned)header.minor_version << std::endl
@@ -1313,7 +1313,7 @@ bool t_rpc_command_executor::out_peers(uint64_t limit)
}
}
- std::cout << "Max number of out peers set to " << limit << std::endl;
+ tools::msg_writer() << "Max number of out peers set to " << limit << std::endl;
return true;
}
@@ -1345,7 +1345,7 @@ bool t_rpc_command_executor::in_peers(uint64_t limit)
}
}
- std::cout << "Max number of in peers set to " << limit << std::endl;
+ tools::msg_writer() << "Max number of in peers set to " << limit << std::endl;
return true;
}