mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Log: Use object as context id for complex context
This commit is contained in:
parent
bff7ef085d
commit
6624b8acca
34 changed files with 276 additions and 238 deletions
|
@ -57,7 +57,7 @@ SrsCplxError::SrsCplxError()
|
|||
{
|
||||
code = ERROR_SUCCESS;
|
||||
wrapped = NULL;
|
||||
cid = rerrno = line = 0;
|
||||
rerrno = line = 0;
|
||||
}
|
||||
|
||||
SrsCplxError::~SrsCplxError()
|
||||
|
@ -79,7 +79,7 @@ std::string SrsCplxError::description() {
|
|||
|
||||
next = this;
|
||||
while (next) {
|
||||
ss << "thread [" << getpid() << "][" << next->cid << "]: "
|
||||
ss << "thread [" << getpid() << "][" << next->cid.c_str() << "]: "
|
||||
<< next->func << "() [" << next->file << ":" << next->line << "]"
|
||||
<< "[errno=" << next->rerrno << "]";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue