From: ShadowNinja Date: Wed, 14 Oct 2015 06:21:41 +0000 (-0400) Subject: Lower log level for benign socket errors X-Git-Tag: 0.4.14~614 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4236792b87a68819c56f3b6f8bd44f48058dec57;p=oweals%2Fminetest.git Lower log level for benign socket errors --- diff --git a/src/socket.cpp b/src/socket.cpp index e82052f77..47fffcc4d 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -571,9 +571,8 @@ bool UDPSocket::WaitData(int timeout_ms) int e = WSAGetLastError(); dstream << (int) m_handle << ": WSAGetLastError()=" << e << std::endl; - if(e == 10004 /* = WSAEINTR */ || e == 10009 /*WSAEBADF*/) - { - dstream << "WARNING: Ignoring WSAEINTR/WSAEBADF." << std::endl; + if (e == 10004 /* WSAEINTR */ || e == 10009 /* WSAEBADF */) { + infostream << "Ignoring WSAEINTR/WSAEBADF." << std::endl; return false; } #endif