mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-03-08 01:24:50 +00:00
Added log level 6 to reduce spam on level 5
Log level 5 is still default
This commit is contained in:
parent
09aedd9f9a
commit
a27577f735
5 changed files with 5 additions and 5 deletions
|
@ -482,7 +482,7 @@ void BlockTemplate::update(const MinerData& data, const Mempool& mempool, Wallet
|
|||
LOGERR(1, "pool block blob generation and/or parsing is broken, error " << result);
|
||||
}
|
||||
else {
|
||||
LOGINFO(1, "blob size = " << buf.size());
|
||||
LOGINFO(6, "blob size = " << buf.size());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -106,7 +106,7 @@ static int do_status(p2pool *m_pool, const char * /* args */)
|
|||
static int do_loglevel(p2pool * /* m_pool */, const char *args)
|
||||
{
|
||||
int level = atoi(args);
|
||||
level = std::min(std::max(level, 0), 5);
|
||||
level = std::min(std::max(level, 0), 6);
|
||||
log::GLOBAL_LOG_LEVEL = level;
|
||||
LOGINFO(0, "log level set to " << level);
|
||||
return 0;
|
||||
|
|
|
@ -1353,7 +1353,7 @@ bool P2PServer::P2PClient::handle_incoming_block_async(PoolBlock* block)
|
|||
P2PServer* server = static_cast<P2PServer*>(m_owner);
|
||||
|
||||
if (server->m_pool->side_chain().block_seen(*block)) {
|
||||
LOGINFO(5, "block " << block->m_sidechainId << " was received before, skipping it");
|
||||
LOGINFO(6, "block " << block->m_sidechainId << " was received before, skipping it");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -333,7 +333,7 @@ bool SideChain::get_shares(PoolBlock* tip, std::vector<MinerShare>& shares) cons
|
|||
|
||||
shares.resize(k + 1);
|
||||
|
||||
LOGINFO(5, "get_shares: " << k + 1 << " unique wallets in PPLNS window");
|
||||
LOGINFO(6, "get_shares: " << k + 1 << " unique wallets in PPLNS window");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -336,7 +336,7 @@ bool TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::connect_to_peer_nolock(Client* cl
|
|||
MutexLock lock(m_pendingConnectionsLock);
|
||||
|
||||
if (!m_pendingConnections.insert(client->m_addr).second) {
|
||||
LOGINFO(5, "there is already a pending connection to this IP, not connecting to " << log::Gray() << static_cast<char*>(client->m_addrString));
|
||||
LOGINFO(6, "there is already a pending connection to this IP, not connecting to " << log::Gray() << static_cast<char*>(client->m_addrString));
|
||||
m_preallocatedClients.push_back(client);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue