mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 22:06:46 +00:00
Convert 'UCS' debugging _log to logger.LogDebugType
This commit is contained in:
+5
-4
@@ -16,6 +16,7 @@
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#include "../common/debug.h"
|
||||
#include "../common/eqemu_logsys.h"
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
@@ -51,7 +52,7 @@ WorldServer::~WorldServer()
|
||||
|
||||
void WorldServer::OnConnected()
|
||||
{
|
||||
_log(UCS__INIT, "Connected to World.");
|
||||
logger.LogDebugType(EQEmuLogSys::Detail, EQEmuLogSys::UCS_Server, "Connected to World.");
|
||||
WorldConnection::OnConnected();
|
||||
}
|
||||
|
||||
@@ -66,7 +67,7 @@ void WorldServer::Process()
|
||||
|
||||
while((pack = tcpc.PopPacket()))
|
||||
{
|
||||
_log(UCS__TRACE, "Received Opcode: %4X", pack->opcode);
|
||||
logger.LogDebugType(EQEmuLogSys::Detail, EQEmuLogSys::UCS_Server, "Received Opcode: %4X", pack->opcode);
|
||||
|
||||
switch(pack->opcode)
|
||||
{
|
||||
@@ -87,7 +88,7 @@ void WorldServer::Process()
|
||||
|
||||
std::string Message = Buffer;
|
||||
|
||||
_log(UCS__TRACE, "Player: %s, Sent Message: %s", From, Message.c_str());
|
||||
logger.LogDebugType(EQEmuLogSys::Detail, EQEmuLogSys::UCS_Server, "Player: %s, Sent Message: %s", From, Message.c_str());
|
||||
|
||||
Client *c = CL->FindCharacter(From);
|
||||
|
||||
@@ -98,7 +99,7 @@ void WorldServer::Process()
|
||||
|
||||
if(!c)
|
||||
{
|
||||
_log(UCS__TRACE, "Client not found.");
|
||||
logger.LogDebugType(EQEmuLogSys::Detail, EQEmuLogSys::UCS_Server, "Client not found.");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user