From bc1a8b2e141bce8c6de5deb4babb31695fe00185 Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Wed, 16 Sep 2020 09:50:54 +0800 Subject: [PATCH] common: remove useless log_early check condition here The code logic shows that Log thread needs to be started even log_early is false. Signed-off-by: Changcheng Liu (cherry picked from commit 71d4178ff453fe3126258f11078048d51398886d) --- src/global/global_init.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/global/global_init.cc b/src/global/global_init.cc index f840c7d72fc..3709f5a301c 100644 --- a/src/global/global_init.cc +++ b/src/global/global_init.cc @@ -145,11 +145,6 @@ void global_pre_init( // command line (as passed by caller) conf.parse_argv(args); - if (conf->log_early && - !cct->_log->is_started()) { - cct->_log->start(); - } - if (!cct->_log->is_started()) { cct->_log->start(); } -- 2.47.3