diff options
Diffstat (limited to 'src/Core')
-rw-r--r-- | src/Core/RequestHandlers/LogRequestHandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Core/RequestHandlers/LogRequestHandler.cpp b/src/Core/RequestHandlers/LogRequestHandler.cpp index 1366710..5640159 100644 --- a/src/Core/RequestHandlers/LogRequestHandler.cpp +++ b/src/Core/RequestHandlers/LogRequestHandler.cpp @@ -19,6 +19,7 @@ #include "LogRequestHandler.h" #include <Common/Logger.h> +#include <Common/RemoteLogger.h> #include <Net/Connection.h> #include <Net/Packets/ErrorPacket.h> #include <Net/Packets/LogPacket.h> @@ -39,7 +40,7 @@ void LogRequestHandler::handlePacket(Net::Connection *connection, const Net::Pac // TODO Require authentication Net::Packets::LogPacket logPacket(packet); - Common::Logger::log(logPacket.getCategory(), logPacket.getLevel(), logPacket.getMessage().c_str()); + Common::RemoteLogger::log(logPacket.getCategory(), logPacket.getLevel(), logPacket.getTimestamp(), logPacket.getMessage().c_str(), std::string()); connection->send(Net::Packet(Net::Packet::OK, packet.getRequestId())); |