fix some warning.

This commit is contained in:
caozhiyi
2021-05-12 10:21:08 +08:00
parent f10126cfca
commit 87bf20f294
13 changed files with 41 additions and 35 deletions

View File

@@ -25,7 +25,7 @@ CppNet::~CppNet() {
void CppNet::Init(int32_t thread_num) {
_cppnet_base->Init(thread_num);
if (__open_log) {
std::shared_ptr<Logger> file_log = std::make_shared<FileLogger>();
std::shared_ptr<Logger> file_log = std::make_shared<FileLogger>(__log_file_name);
std::shared_ptr<Logger> std_log = std::make_shared<StdoutLogger>();
file_log->SetLogger(std_log);
LOG_SET(file_log);