From b7e21d931c1dfb49e5169c0e7e4322c38154ded1 Mon Sep 17 00:00:00 2001 From: hevake_lcj Date: Tue, 19 Jul 2022 23:43:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=94=B1=E6=9E=90=E6=9E=84?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E4=B8=AD=E6=89=93=E5=8D=B0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=9C=A8FileAsyncChannel=E4=B8=AD=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E9=9D=9E=E6=97=A0=E6=95=88=E5=86=85=E5=AD=98=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/log.cpp | 1 + main/main.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main/log.cpp b/main/log.cpp index 260f302..5575eb8 100644 --- a/main/log.cpp +++ b/main/log.cpp @@ -153,6 +153,7 @@ bool Log::initialize(const char *proc_name, Context &ctx, const Json &cfg) void Log::cleanup() { filelog_.cleanup(); + filelog_.disable(); } void Log::buildTerminalNodes(TerminalNodes &term) diff --git a/main/main.cpp b/main/main.cpp index 52c7bb8..8da7fcd 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -104,8 +104,6 @@ int Main(int argc, char **argv) } LogInfo("Bye!"); - - log.cleanup(); return 0; } -- Gitee