Convert 'UCS' debugging _log to logger.LogDebugType

This commit is contained in:
Akkadius
2015-01-12 22:44:47 -06:00
parent f26f49c2a1
commit 40d32fc1e5
8 changed files with 126 additions and 120 deletions
+5 -4
View File
@@ -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;
}