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

Refine origin cluster log

This commit is contained in:
winlin 2019-10-04 06:51:15 +08:00
parent 3483c1526f
commit 130c545f9a
3 changed files with 4 additions and 3 deletions

View file

@ -464,7 +464,7 @@ srs_error_t SrsHttpHooks::discover_co_workers(string url, string& host, int& por
}
port = (int)prop->to_integer();
srs_trace("http: on_hls ok, url=%s, response=%s", url.c_str(), res.c_str());
srs_trace("http: cluster redirect %s:%d ok, url=%s, response=%s", host.c_str(), port, url.c_str(), res.c_str());
return err;
}

View file

@ -608,7 +608,8 @@ srs_error_t SrsRtmpConn::playing(SrsSource* source)
if ((err = SrsHttpHooks::discover_co_workers(url, host, port)) != srs_success) {
return srs_error_wrap(err, "discover coworkers, url=%s", url.c_str());
}
srs_trace("rtmp: redirect in cluster, url=%s, target=%s:%d", url.c_str(), host.c_str(), port);
srs_trace("rtmp: redirect in cluster, from=%s:%d, target=%s:%d, url=%s",
req->host.c_str(), req->port, host.c_str(), port, url.c_str());
bool accepted = false;
if ((err = rtmp->redirect(req, host, port, accepted)) != srs_success) {

View file

@ -27,7 +27,7 @@
// The version config.
#define VERSION_MAJOR 3
#define VERSION_MINOR 0
#define VERSION_REVISION 54
#define VERSION_REVISION 55
// The macros generated by configure script.
#include <srs_auto_headers.hpp>