mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Overall improvements to log messages (#9598)
Hide some unnecessarily verbose ones behind --trace or disable them entirely. Remove duplicate ones. Improve their contents in some places.
This commit is contained in:
parent
3494475df1
commit
de73f989eb
22 changed files with 87 additions and 111 deletions
|
@ -199,7 +199,6 @@ void ConnectionSendThread::runTimeouts(float dtime)
|
|||
infostream << m_connection->getDesc()
|
||||
<< "RunTimeouts(): Peer " << peer->id
|
||||
<< " has timed out."
|
||||
<< " (source=peer->timeout_counter)"
|
||||
<< std::endl;
|
||||
// Add peer to the list
|
||||
timeouted_peers.push_back(peer->id);
|
||||
|
@ -292,7 +291,7 @@ void ConnectionSendThread::runTimeouts(float dtime)
|
|||
|
||||
// Remove timed out peers
|
||||
for (u16 timeouted_peer : timeouted_peers) {
|
||||
LOG(derr_con << m_connection->getDesc()
|
||||
LOG(dout_con << m_connection->getDesc()
|
||||
<< "RunTimeouts(): Removing peer " << timeouted_peer << std::endl);
|
||||
m_connection->deletePeer(timeouted_peer, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue