From 47a8cdeb11c1676bc778efc2c925a933ff2fe558 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 11 Aug 2020 08:25:53 +0000 Subject: [PATCH] changed a couple of log messages to include wid in TcpServer.cpp --- qse/lib/si/TcpServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qse/lib/si/TcpServer.cpp b/qse/lib/si/TcpServer.cpp index 2a1ce068..84868f27 100644 --- a/qse/lib/si/TcpServer.cpp +++ b/qse/lib/si/TcpServer.cpp @@ -58,7 +58,7 @@ int TcpServer::Connection::main () TcpServer* server = this->getServer(); - server->logfmt (QSE_LOG_INFO, QSE_T("closing connection[%d]\n"), (int)this->socket.getHandle()); + server->logfmt (QSE_LOG_INFO, QSE_T("closing connection[h=%d,w=%zu]\n"), (int)this->socket.getHandle(), this->getWid()); server->_connection_list_spl.lock (); this->csspl.lock (); @@ -242,7 +242,7 @@ void TcpServer::dispatch_mux_event (qse_mux_t* mux, const qse_mux_evt_t* evt) QS else { qse_char_t addrbuf[128]; - server->logfmt (QSE_LOG_INFO, QSE_T("connection[%d] from %s\n"), (int)connection->socket.getHandle(), connection->address.toStrBuf(addrbuf, QSE_COUNTOF(addrbuf))); + server->logfmt (QSE_LOG_INFO, QSE_T("connection[h=%d,w=%zu] from %s\n"), (int)connection->socket.getHandle(), connection->getWid(), connection->address.toStrBuf(addrbuf, QSE_COUNTOF(addrbuf))); } return;