mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
支持设置、获取线程名
This commit is contained in:
parent
b9e4350dd2
commit
eba3758b30
@ -1 +1 @@
|
|||||||
Subproject commit a04a723c2ffa9b59345f92608600299efaeca81d
|
Subproject commit a3e4d9650f3f39dfc3d1d2a97e68b35d1892cad6
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user