add log level config.

This commit is contained in:
caozhiyi
2021-04-08 11:52:50 +08:00
parent 2a9487d827
commit 3db5a4908c
2 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ void CppNet::Init(int32_t thread_num) {
std::shared_ptr<Logger> std_log = std::make_shared<StdoutLogger>();
file_log->SetLogger(std_log);
LOG_SET(file_log);
LOG_SET_LEVEL(LL_DEBUG);
LOG_SET_LEVEL((LogLevel)__log_level);
} else {
LOG_SET_LEVEL(LL_NULL);
}