mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Use warningstream for log messages with WARNING
Remove DTIME macro and its uses, too
This commit is contained in:
parent
2139d7d45f
commit
96cc5b34fe
26 changed files with 92 additions and 94 deletions
|
@ -693,7 +693,7 @@ void Server::AsyncRunStep(bool initial_step)
|
|||
Player *player = m_env->getPlayer(client->peer_id);
|
||||
if(player == NULL) {
|
||||
// This can happen if the client timeouts somehow
|
||||
/*infostream<<"WARNING: "<<__FUNCTION_NAME<<": Client "
|
||||
/*warningstream<<__FUNCTION_NAME<<": Client "
|
||||
<<client->peer_id
|
||||
<<" has no associated player"<<std::endl;*/
|
||||
continue;
|
||||
|
@ -746,7 +746,7 @@ void Server::AsyncRunStep(bool initial_step)
|
|||
// Get object type
|
||||
u8 type = ACTIVEOBJECT_TYPE_INVALID;
|
||||
if(obj == NULL)
|
||||
infostream<<"WARNING: "<<__FUNCTION_NAME
|
||||
warningstream<<__FUNCTION_NAME
|
||||
<<": NULL object"<<std::endl;
|
||||
else
|
||||
type = obj->getSendType();
|
||||
|
@ -931,7 +931,7 @@ void Server::AsyncRunStep(bool initial_step)
|
|||
break;
|
||||
default:
|
||||
prof.add("unknown", 1);
|
||||
infostream << "WARNING: Server: Unknown MapEditEvent "
|
||||
warningstream << "Server: Unknown MapEditEvent "
|
||||
<< ((u32)event->type) << std::endl;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue