提交 13d5c106 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Improve logs

上级 c540a972
......@@ -336,13 +336,13 @@ namespace RTC
{
if (!useNack && fb.type == "nack")
{
MS_DEBUG_TAG(rtcp, "enabling NACK reception");
MS_DEBUG_2TAGS(rtcp, rtx, "NACK supported");
useNack = true;
}
if (!usePli && fb.type == "nack" && fb.parameter == "pli")
{
MS_DEBUG_TAG(rtcp, "enabling PLI reception");
MS_DEBUG_TAG(rtcp, "PLI supported");
usePli = true;
}
......
......@@ -69,7 +69,7 @@ namespace RTC
{
MS_DEBUG_TAG(
rtx,
"nacked packet received [ssrc:%" PRIu32 ", seq:%" PRIu16 "]",
"NACKed packet received [ssrc:%" PRIu32 ", seq:%" PRIu16 "]",
packet->GetSsrc(),
packet->GetSequenceNumber());
......@@ -80,7 +80,7 @@ namespace RTC
{
MS_DEBUG_TAG(
rtx,
"out of order packet received [ssrc:%" PRIu32 ", seq:%" PRIu16 "]",
"out of order RTX packet received [ssrc:%" PRIu32 ", seq:%" PRIu16 "]",
packet->GetSsrc(),
packet->GetSequenceNumber());
}
......@@ -115,7 +115,7 @@ namespace RTC
if (this->nackList.size() + numNewNacks > MaxNackPackets)
{
MS_DEBUG_TAG(rtx, "nack list too large, clearing it and requesting a full frame");
MS_DEBUG_TAG(rtx, "NACK list too large, clearing it and requesting a full frame");
this->nackList.clear();
this->listener->OnNackGeneratorFullFrameRequired();
......
......@@ -373,7 +373,7 @@ namespace RTC
}
else if (this->fullFrameRequestBlockTimer->IsActive())
{
MS_DEBUG_TAG(rtx, "blocking full frame request until timer expires");
MS_DEBUG_TAG(rtcp, "blocking full frame request until timer expires");
// Set flag.
this->isFullFrameRequested = true;
......@@ -458,19 +458,19 @@ namespace RTC
{
if (!useNack && fb.type == "nack")
{
MS_DEBUG_TAG(rtcp, "enabling NACK generation");
MS_DEBUG_2TAGS(rtcp, rtx, "NACK supported");
useNack = true;
}
if (!usePli && fb.type == "nack" && fb.parameter == "pli")
{
MS_DEBUG_TAG(rtcp, "enabling PLI generation");
MS_DEBUG_TAG(rtcp, "PLI supported");
usePli = true;
}
else if (!useRemb && fb.type == "goog-remb")
{
MS_DEBUG_TAG(rbe, "enabling REMB");
MS_DEBUG_TAG(rbe, "REMB supported");
useRemb = true;
}
......@@ -592,6 +592,8 @@ namespace RTC
{
MS_TRACE();
MS_DEBUG_TAG(rtcp, "sending PLI");
RTC::RTCP::FeedbackPsPliPacket packet(0, rtpStream->GetSsrc());
packet.Serialize(RTC::RTCP::Buffer);
......@@ -611,7 +613,7 @@ namespace RTC
if (!this->isFullFrameRequested)
return;
MS_DEBUG_TAG(rtx, "requesting full frame after timer expires");
MS_DEBUG_TAG(rtcp, "requesting full frame after timer expires");
RequestFullFrame();
}
......
......@@ -461,7 +461,7 @@ namespace RTC
{
MS_TRACE();
MS_ASSERT(this->hasRtx, "rtx is not enabled on this stream");
MS_ASSERT(this->hasRtx, "RTX not enabled on this stream");
packet->RtxEncode(this->rtxPayloadType, this->rtxSsrc, ++this->rtxSeq);
}
......
......@@ -622,7 +622,8 @@ namespace RTC
if (consumer->kind == RTC::Media::Kind::VIDEO)
{
MS_DEBUG_TAG(
rtx, "requesting full frame for new Consumer since Transport already connected");
rtcp,
"requesting full frame for new Consumer since Transport already connected");
}
consumer->RequestFullFrame();
......@@ -721,7 +722,8 @@ namespace RTC
this->iceServer->GetState() == RTC::IceServer::IceState::COMPLETED)
{
MS_DEBUG_TAG(
dtls, "transition from DTLS local role 'auto' to 'server' and running DTLS transport");
dtls,
"transition from DTLS local role 'auto' to 'server' and running DTLS transport");
this->dtlsLocalRole = RTC::DtlsTransport::Role::SERVER;
this->dtlsTransport->Run(RTC::DtlsTransport::Role::SERVER);
......@@ -1267,7 +1269,7 @@ namespace RTC
for (auto* consumer : this->consumers)
{
if (consumer->kind == RTC::Media::Kind::VIDEO)
MS_DEBUG_TAG(rtx, "Transport connected, requesting full frame for Consumers");
MS_DEBUG_TAG(rtcp, "Transport connected, requesting full frame for Consumers");
consumer->RequestFullFrame();
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论