From 3c22b106efd6a4f17cc081a91ffe9db38868dcc6 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Fri, 16 Jan 2015 01:07:29 -0600 Subject: [PATCH] TCPConnection LogCategory Add --- common/eqemu_logsys.h | 2 ++ common/tcp_connection.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/eqemu_logsys.h b/common/eqemu_logsys.h index f3f31740e..a80932edc 100644 --- a/common/eqemu_logsys.h +++ b/common/eqemu_logsys.h @@ -70,6 +70,7 @@ public: Trading, Tradeskills, Tribute, + TCP_Connection, MaxCategoryID /* Don't Remove this*/ }; @@ -130,6 +131,7 @@ static const char* LogCategoryName[EQEmuLogSys::LogCategory::MaxCategoryID] = { "Trading", "Tradeskills", "Tribute", + "TCP_Connection" }; #endif \ No newline at end of file diff --git a/common/tcp_connection.cpp b/common/tcp_connection.cpp index f0df7b197..4a17125a0 100644 --- a/common/tcp_connection.cpp +++ b/common/tcp_connection.cpp @@ -900,7 +900,7 @@ ThreadReturnType TCPConnection::TCPConnectionLoop(void* tmp) { } TCPConnection* tcpc = (TCPConnection*) tmp; #ifndef WIN32 - logger.LogDebug(EQEmuLogSys::Detail, "Starting TCPConnectionLoop with thread ID %d", pthread_self()); + logger.LogDebugType(EQEmuLogSys::Detail, EQEmuLogSys::TCP_Connection, __FUNCTION__ " Starting TCPConnectionLoop with thread ID %d", pthread_self()); #endif tcpc->MLoopRunning.lock(); while (tcpc->RunLoop()) {