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

CLS: Refine logging to global object.

This commit is contained in:
winlin 2022-08-27 12:28:33 +08:00
parent 8bc7342c3c
commit 6dc86b8a2e
3 changed files with 75 additions and 70 deletions

View file

@ -391,7 +391,7 @@ srs_error_t SrsHybridServer::on_timer(srs_utime_t interval)
);
// Report logs to CLS if enabled.
if ((err = srs_cls_report()) != srs_success) {
if ((err = _srs_cls->report()) != srs_success) {
srs_warn("ignore cls err %s", srs_error_desc(err).c_str());
srs_freep(err);
}