From 5a51484bf95ad267a8e07a046e3e06916802ae37 Mon Sep 17 00:00:00 2001 From: ly Date: Wed, 16 Jun 2021 17:05:44 +0800 Subject: [PATCH] fix: coredump when port num conflict caused by ObLogger distruct after main(), some static instance that rely on may be destruct first --- src/observer/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/observer/main.cpp b/src/observer/main.cpp index e1744dd44..c7297e928 100644 --- a/src/observer/main.cpp +++ b/src/observer/main.cpp @@ -498,5 +498,6 @@ int main(int argc, char* argv[]) LOG_INFO("observer is exit"); OB_LOGGER.set_stop_append_log(); + OB_LOGGER.destroy(); return ret; }