胡斌

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

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