支持设置、获取线程名

This commit is contained in:
xiongziliang 2021-07-10 23:54:08 +08:00
parent b9e4350dd2
commit eba3758b30
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit a04a723c2ffa9b59345f92608600299efaeca81d Subproject commit a3e4d9650f3f39dfc3d1d2a97e68b35d1892cad6

View File

@ -229,6 +229,8 @@ int start_main(int argc,char *argv[]) {
string ssl_file = cmd_main["ssl"]; string ssl_file = cmd_main["ssl"];
int threads = cmd_main["threads"]; int threads = cmd_main["threads"];
setThreadName("main thread");
//设置日志 //设置日志
Logger::Instance().add(std::make_shared<ConsoleChannel>("ConsoleChannel", logLevel)); Logger::Instance().add(std::make_shared<ConsoleChannel>("ConsoleChannel", logLevel));
#ifndef ANDROID #ifndef ANDROID