1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add thread cid to log

This commit is contained in:
winlin 2014-04-16 16:58:54 +08:00
parent 28231cadda
commit fdd0678bcb
3 changed files with 6 additions and 2 deletions

View file

@ -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;
}