Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-04-16 16:58:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fdd0678bcbcae7872016bc3a860954d4f6b9d78f
fdd0678b
1 parent
28231cad
add thread cid to log
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
6 行增加
和
2 行删除
trunk/src/app/srs_app_forward.cpp
trunk/src/app/srs_app_ingest.cpp
trunk/src/app/srs_app_server.cpp
trunk/src/app/srs_app_forward.cpp
查看文件 @
fdd0678
...
...
@@ -132,6 +132,7 @@ int SrsForwarder::on_publish(SrsRequest* req, std::string forward_server)
srs_error
(
"start srs thread failed. ret=%d"
,
ret
);
return
ret
;
}
srs_trace
(
"forward thread cid=%d, current_cid=%d"
,
pthread
->
cid
(),
_srs_context
->
get_id
());
return
ret
;
}
...
...
trunk/src/app/srs_app_ingest.cpp
查看文件 @
fdd0678
...
...
@@ -83,6 +83,7 @@ int SrsIngester::start()
srs_error
(
"st_thread_create failed. ret=%d"
,
ret
);
return
ret
;
}
srs_trace
(
"ingest thread cid=%d, current_cid=%d"
,
pthread
->
cid
(),
_srs_context
->
get_id
());
return
ret
;
}
...
...
trunk/src/app/srs_app_server.cpp
查看文件 @
fdd0678
...
...
@@ -129,7 +129,9 @@ int SrsListener::listen(int port)
}
srs_verbose
(
"create st listen thread success."
);
srs_trace
(
"server started, listen at port=%d, type=%d, fd=%d"
,
_port
,
_type
,
fd
);
srs_trace
(
"listen thread cid=%d, current_cid=%d, "
"listen at port=%d, type=%d, fd=%d started success"
,
pthread
->
cid
(),
_srs_context
->
get_id
(),
_port
,
_type
,
fd
);
return
ret
;
}
...
...
@@ -349,7 +351,7 @@ int SrsServer::initialize_st()
// set current log id.
_srs_context
->
generate_id
();
srs_
info
(
"log set id success"
);
srs_
trace
(
"server main cid=%d"
,
_srs_context
->
get_id
()
);
return
ret
;
}
...
...
请
注册
或
登录
后发表评论