mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
daemon: use msg_writer, not cout, to display information
This commit is contained in:
parent
4cbb476cd1
commit
c17a1d431b
@ -567,8 +567,8 @@ bool t_rpc_command_executor::print_blockchain_info(uint64_t start_block_index, u
|
|||||||
for (auto & header : res.headers)
|
for (auto & header : res.headers)
|
||||||
{
|
{
|
||||||
if (!first)
|
if (!first)
|
||||||
std::cout << std::endl;
|
tools::msg_writer() << "" << std::endl;
|
||||||
std::cout
|
tools::msg_writer()
|
||||||
<< "height: " << header.height << ", timestamp: " << header.timestamp
|
<< "height: " << header.height << ", timestamp: " << header.timestamp
|
||||||
<< ", size: " << header.block_size << ", weight: " << header.block_weight << ", transactions: " << header.num_txes << std::endl
|
<< ", 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
|
<< "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;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user