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);