Refine origin cluster log

pull/1568/head
winlin 5 years ago
parent 3483c1526f
commit 130c545f9a

@ -464,7 +464,7 @@ srs_error_t SrsHttpHooks::discover_co_workers(string url, string& host, int& por
} }
port = (int)prop->to_integer(); 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; return err;
} }

@ -608,7 +608,8 @@ srs_error_t SrsRtmpConn::playing(SrsSource* source)
if ((err = SrsHttpHooks::discover_co_workers(url, host, port)) != srs_success) { if ((err = SrsHttpHooks::discover_co_workers(url, host, port)) != srs_success) {
return srs_error_wrap(err, "discover coworkers, url=%s", url.c_str()); 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; bool accepted = false;
if ((err = rtmp->redirect(req, host, port, accepted)) != srs_success) { if ((err = rtmp->redirect(req, host, port, accepted)) != srs_success) {

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

Loading…
Cancel
Save