diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-10-14 01:26:03 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-10-14 01:36:48 -0400 |
commit | 96cc5b34fe0151d2a1498eaaafb205757db346c4 (patch) | |
tree | e612a2d78086427cc5f555b82c597dcf9dd13b74 /src/server.cpp | |
parent | 2139d7d45fb1a8ed250ad96c9975c581f02f72a9 (diff) | |
download | minetest-96cc5b34fe0151d2a1498eaaafb205757db346c4.tar.xz |
Use warningstream for log messages with WARNING
Remove DTIME macro and its uses, too
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server.cpp b/src/server.cpp index b0f69f1c3..8f105ffd2 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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; } |