diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 16:34:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 16:58:46 +0300 |
commit | 38659dbd75d81edbe336d5311a1cd1184d359b7e (patch) | |
tree | 919c97a5e48c5e9287250eab34cb36ef5f02c21e /src/net/ea/network.cpp | |
parent | c1ba61eb566a0a1a2532690ba3bf7e6498bee06b (diff) | |
download | mv-38659dbd75d81edbe336d5311a1cd1184d359b7e.tar.gz mv-38659dbd75d81edbe336d5311a1cd1184d359b7e.tar.bz2 mv-38659dbd75d81edbe336d5311a1cd1184d359b7e.tar.xz mv-38659dbd75d81edbe336d5311a1cd1184d359b7e.zip |
add support for ignore packets logging.
Option for coma separated packet ids added in misc tab.
Diffstat (limited to 'src/net/ea/network.cpp')
-rw-r--r-- | src/net/ea/network.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index c080e35ec..b64ae68cb 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -153,7 +153,11 @@ void Network::flush() SDL_mutexP(mMutexOut); const int ret = TcpNet::send(mSocket, mOutBuffer, mOutSize); - DEBUGLOG(std::string("Send ").append(toString(mOutSize)).append(" bytes")); + if (logger) + { + logger->dlog(std::string("Send ").append( + toString(mOutSize)).append(" bytes")); + } if (ret < static_cast<int>(mOutSize)) { SDL_mutexV(mMutexOut); |