mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Lower log level for unexpected behaviour
Its a possible mistake to log in to a server with twice the same name. Before, it triggered a server wide error message, now it logs to actionstream.
This commit is contained in:
@@ -613,7 +613,7 @@ void Server::handleCommand_Init2(NetworkPacket* pkt)
|
||||
playersao = StageTwoClientInit(pkt->getPeerId());
|
||||
|
||||
if (playersao == NULL) {
|
||||
errorstream
|
||||
actionstream
|
||||
<< "TOSERVER_INIT2 stage 2 client init failed for peer "
|
||||
<< pkt->getPeerId() << std::endl;
|
||||
return;
|
||||
@@ -710,7 +710,7 @@ void Server::handleCommand_ClientReady(NetworkPacket* pkt)
|
||||
PlayerSAO* playersao = StageTwoClientInit(peer_id);
|
||||
|
||||
if (playersao == NULL) {
|
||||
errorstream
|
||||
actionstream
|
||||
<< "TOSERVER_CLIENT_READY stage 2 client init failed for peer_id: "
|
||||
<< peer_id << std::endl;
|
||||
m_con.DisconnectPeer(peer_id);
|
||||
|
Reference in New Issue
Block a user