胡斌

add log to debug edge can't pull stream from origin sometimes

... ... @@ -510,9 +510,9 @@ int SrsRtmpConn::stream_service_cycle()
bool vhost_is_edge = _srs_config->get_vhost_is_edge(req->vhost);
bool enabled_cache = _srs_config->get_gop_cache(req->vhost);
srs_trace("source url=%s, ip=%s, cache=%d, is_edge=%d, source_id=%d[%d]",
srs_trace("source url=%s, ip=%s, cache=%d, is_edge=%d, source_id=%d[%d], pointer=%"SCNxPTR,
req->get_stream_url().c_str(), ip.c_str(), enabled_cache, vhost_is_edge,
source->source_id(), source->source_id());
source->source_id(), source->source_id(),source);
source->set_cache(enabled_cache);
client_type = type;
... ...
... ... @@ -765,7 +765,7 @@ int SrsSource::fetch_or_create(SrsRequest* r, ISrsSourceHandler* h, SrsSource**
}
pool[stream_url] = source;
srs_info("create new source for url=%s, vhost=%s", stream_url.c_str(), vhost.c_str());
srs_trace("create new source for url=%s, vhost=%s pointer=%"SCNxPTR, stream_url.c_str(), vhost.c_str(), source);
*pps = source;
... ...