summaryrefslogtreecommitdiffstats
path: root/src/Common/RequestManager.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-17 22:18:09 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-17 22:18:09 +0200
commitd84a3b91346038bf55d7111462dab42a0a26445d (patch)
tree1e9eca4eba2a8da8f616815e56385725310fe148 /src/Common/RequestManager.cpp
parentcccc512e2565b7b96b765bfb873f0fb635bd23e1 (diff)
downloadmad-d84a3b91346038bf55d7111462dab42a0a26445d.tar
mad-d84a3b91346038bf55d7111462dab42a0a26445d.zip
Logger f?r Log-Messages benutzen
Diffstat (limited to 'src/Common/RequestManager.cpp')
-rw-r--r--src/Common/RequestManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Common/RequestManager.cpp b/src/Common/RequestManager.cpp
index 2bf82b0..afe72b0 100644
--- a/src/Common/RequestManager.cpp
+++ b/src/Common/RequestManager.cpp
@@ -20,12 +20,12 @@
#include "RequestManager.h"
#include "Request.h"
#include "RequestHandlers/DisconnectRequestHandler.h"
+#include "Logger.h"
#include <Net/Packets/ErrorPacket.h>
#include <sigc++/bind.h>
#include <sigc++/retype_return.h>
-#include <iostream>
namespace Mad {
namespace Common {
@@ -72,7 +72,7 @@ void RequestManager::receiveHandler(Net::Connection *connection, const Net::Pack
if(it == requestMaps.end()) {
// TODO: Error
- std::cerr << "Received a packet from an unregistered connection." << std::endl;
+ Logger::log(Logger::ERROR, "Received a packet from an unregistered connection.");
return;
}
@@ -95,7 +95,7 @@ void RequestManager::receiveHandler(Net::Connection *connection, const Net::Pack
return;
}
- std::cerr << "Received an unexpected packet." << std::endl;
+ Logger::log(Logger::ERROR, "Received an unexpected packet.");
connection->send(Net::Packets::ErrorPacket(Net::Packet::ERROR, packet.getRequestId(), Exception(Exception::UNEXPECTED_PACKET)));
}