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

RTC: Refine log for error pithy print

This commit is contained in:
winlin 2020-07-27 12:44:29 +08:00
parent 5f7d1e2c5b
commit ca004fe33f
4 changed files with 12 additions and 6 deletions

View file

@ -116,6 +116,7 @@ SrsStageInfo* SrsStageManager::fetch_or_create(int stage_id, bool* pnew)
SrsErrorPithyPrint::SrsErrorPithyPrint()
{
nn_count = 0;
}
SrsErrorPithyPrint::~SrsErrorPithyPrint()
@ -130,6 +131,8 @@ bool SrsErrorPithyPrint::can_print(srs_error_t err)
bool SrsErrorPithyPrint::can_print(int error_code)
{
nn_count++;
bool new_stage = false;
SrsStageInfo* stage = stages.fetch_or_create(error_code, &new_stage);