mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine error pithy print log
This commit is contained in:
parent
ea10d7907f
commit
9d08318581
4 changed files with 28 additions and 14 deletions
|
@ -37,6 +37,8 @@ public:
|
|||
int stage_id;
|
||||
srs_utime_t interval;
|
||||
int nb_clients;
|
||||
// The number of call of can_print().
|
||||
uint32_t nn_count;
|
||||
public:
|
||||
srs_utime_t age;
|
||||
public:
|
||||
|
@ -79,9 +81,9 @@ public:
|
|||
virtual ~SrsErrorPithyPrint();
|
||||
public:
|
||||
// Whether specified stage is ready for print.
|
||||
bool can_print(srs_error_t err);
|
||||
bool can_print(srs_error_t err, uint32_t* pnn = NULL);
|
||||
// We also support int error code.
|
||||
bool can_print(int err);
|
||||
bool can_print(int err, uint32_t* pnn = NULL);
|
||||
};
|
||||
|
||||
// The stage is used for a collection of object to do print,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue