From 43a2a0bd8d8ee290b059f956b1cc366e480e5f59 Mon Sep 17 00:00:00 2001 From: ruanshudong Date: Mon, 25 Mar 2024 19:19:57 +0800 Subject: [PATCH] feat: epoll server add destroyApp log --- servant/libservant/Application.cpp | 5 ----- unit-test/server/WinServer.cpp | 1 - util/src/tc_epoll_server.cpp | 1 + 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/servant/libservant/Application.cpp b/servant/libservant/Application.cpp index 2239fa94..78995cee 100644 --- a/servant/libservant/Application.cpp +++ b/servant/libservant/Application.cpp @@ -211,11 +211,6 @@ void reportRspQueue(TC_EpollServer *epollServer) } } -//void heartBeatFunc(const string& adapterName) -//{ -// TARS_KEEPALIVE(adapterName); -//} -// void Application::manualListen() { vector v = getEpollServer()->getBindAdapters(); diff --git a/unit-test/server/WinServer.cpp b/unit-test/server/WinServer.cpp index d9c56389..a010886f 100644 --- a/unit-test/server/WinServer.cpp +++ b/unit-test/server/WinServer.cpp @@ -29,7 +29,6 @@ WinServer::initialize() void WinServer::destroyApp() { LOG_CONSOLE_DEBUG << endl; - } void WinServer::run() diff --git a/util/src/tc_epoll_server.cpp b/util/src/tc_epoll_server.cpp index 691b1e80..07fb7877 100644 --- a/util/src/tc_epoll_server.cpp +++ b/util/src/tc_epoll_server.cpp @@ -2162,6 +2162,7 @@ void TC_EpollServer::waitForShutdown() } catch (exception& ex) { + error(string("destroyApp error:") + ex.what()); } }