Removed some noisy warning messages

This commit is contained in:
SChernykh 2021-08-23 14:05:07 +02:00
parent f7bd2f1815
commit df52838433
2 changed files with 7 additions and 2 deletions

View file

@ -1130,7 +1130,7 @@ bool P2PServer::P2PClient::on_block_broadcast(const uint8_t* buf, uint32_t size)
if ((server->m_block->m_prevId != server->m_pool->miner_data().prev_id) &&
(server->m_block->m_txinGenHeight < server->m_pool->miner_data().height)){
LOGWARN(4, "peer " << static_cast<char*>(m_addrString) << " broadcasted a stale block, ignoring it");
LOGINFO(4, "peer " << static_cast<char*>(m_addrString) << " broadcasted a stale block, ignoring it");
return true;
}

View file

@ -558,7 +558,12 @@ void TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::on_connect(uv_connect_t* req, int
MutexLock lock(server->m_clientsListLock);
if (status) {
LOGWARN(5, "failed to connect to " << static_cast<char*>(client->m_addrString) << ", error " << uv_err_name(status));
if (status == UV_ETIMEDOUT) {
LOGINFO(5, "connection to " << static_cast<char*>(client->m_addrString) << " timed out");
}
else {
LOGWARN(5, "failed to connect to " << static_cast<char*>(client->m_addrString) << ", error " << uv_err_name(status));
}
server->on_connect_failed(client->m_isV6, client->m_addr, client->m_port);
server->m_preallocatedClients.push_back(client);
return;