Reduce FlexFEC logging severity in two places.

BUG=webrtc:5654

Review-Url: https://codereview.webrtc.org/2621833004
Cr-Commit-Position: refs/heads/master@{#15992}
This commit is contained in:
brandtr
2017-01-10 06:49:58 -08:00
committed by Commit bot
parent e911dbd83b
commit 658024ee92
2 changed files with 5 additions and 7 deletions

View File

@ -142,8 +142,8 @@ bool FlexfecReceiver::ProcessReceivedPackets() {
if (now_ms - last_recovered_packet_ms_ > kPacketLogIntervalMs) {
uint32_t media_ssrc =
ForwardErrorCorrection::ParseSsrc(recovered_packet->pkt->data);
LOG(LS_INFO) << "Recovered media packet with SSRC: " << media_ssrc
<< " from FlexFEC stream with SSRC: " << ssrc_ << ".";
LOG(LS_VERBOSE) << "Recovered media packet with SSRC: " << media_ssrc
<< " from FlexFEC stream with SSRC: " << ssrc_ << ".";
last_recovered_packet_ms_ = now_ms;
}
}

View File

@ -134,14 +134,12 @@ std::vector<std::unique_ptr<RtpPacketToSend>> FlexfecSender::GetFecPackets() {
}
ulpfec_generator_.ResetState();
// TODO(brandtr): Remove this log output when the FlexFEC subsystem is
// properly wired up in a robust way.
int64_t now_ms = clock_->TimeInMilliseconds();
if (!fec_packets_to_send.empty() &&
now_ms - last_generated_packet_ms_ > kPacketLogIntervalMs) {
LOG(LS_INFO) << "Generated " << fec_packets_to_send.size()
<< " FlexFEC packets with payload type: " << payload_type_
<< " and SSRC: " << ssrc_ << ".";
LOG(LS_VERBOSE) << "Generated " << fec_packets_to_send.size()
<< " FlexFEC packets with payload type: " << payload_type_
<< " and SSRC: " << ssrc_ << ".";
last_generated_packet_ms_ = now_ms;
}