From ee4659a1852e9dc930059814f27e4aaed144e736 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 18 Dec 2019 13:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=82=E6=AD=A5=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=BA=BF=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/common.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/source/common.cpp b/api/source/common.cpp index 72585388..9299bd79 100755 --- a/api/source/common.cpp +++ b/api/source/common.cpp @@ -48,6 +48,8 @@ API_EXPORT void API_CALL mk_env_init(const config *cfg) { assert(cfg != nullptr); static onceToken token([&]() { Logger::Instance().add(std::make_shared("console", (LogLevel) cfg->log_level)); + Logger::Instance().setWriter(std::make_shared()); + EventPollerPool::setPoolSize(cfg->thread_num); WorkThreadPool::setPoolSize(cfg->thread_num);