Convert common error and warning logs to info severity

This commit is contained in:
Jim Gustafson 2022-03-15 18:34:43 -07:00 committed by GitHub
parent 3996f98d35
commit ad8014f0fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 125 additions and 122 deletions

View file

@ -886,7 +886,7 @@ void AudioSendStream::RemoveBitrateObserver() {
absl::optional<AudioSendStream::TargetAudioBitrateConstraints> absl::optional<AudioSendStream::TargetAudioBitrateConstraints>
AudioSendStream::GetMinMaxBitrateConstraints() const { AudioSendStream::GetMinMaxBitrateConstraints() const {
if (config_.min_bitrate_bps < 0 || config_.max_bitrate_bps < 0) { if (config_.min_bitrate_bps < 0 || config_.max_bitrate_bps < 0) {
RTC_LOG(LS_WARNING) << "Config is invalid: min_bitrate_bps=" RTC_LOG(LS_INFO) << "Config is invalid: min_bitrate_bps="
<< config_.min_bitrate_bps << config_.min_bitrate_bps
<< "; max_bitrate_bps=" << config_.max_bitrate_bps << "; max_bitrate_bps=" << config_.max_bitrate_bps
<< "; both expected greater or equal to 0"; << "; both expected greater or equal to 0";

View file

@ -104,7 +104,7 @@ bool ShouldDisableRedAndUlpfec(bool flexfec_enabled,
// Note that this is not the case with FlexFEC. // Note that this is not the case with FlexFEC.
if (nack_enabled && IsUlpfecEnabled() && if (nack_enabled && IsUlpfecEnabled() &&
!PayloadTypeSupportsSkippingFecPackets(rtp_config.payload_name, trials)) { !PayloadTypeSupportsSkippingFecPackets(rtp_config.payload_name, trials)) {
RTC_LOG(LS_WARNING) RTC_LOG(LS_INFO)
<< "Transmitting payload type without picture ID using " << "Transmitting payload type without picture ID using "
"NACK+ULPFEC is a waste of bandwidth since ULPFEC packets " "NACK+ULPFEC is a waste of bandwidth since ULPFEC packets "
"also have to be retransmitted. Disabling ULPFEC."; "also have to be retransmitted. Disabling ULPFEC.";
@ -113,7 +113,7 @@ bool ShouldDisableRedAndUlpfec(bool flexfec_enabled,
// Verify payload types. // Verify payload types.
if (IsUlpfecEnabled() ^ IsRedEnabled()) { if (IsUlpfecEnabled() ^ IsRedEnabled()) {
RTC_LOG(LS_WARNING) RTC_LOG(LS_INFO)
<< "Only RED or only ULPFEC enabled, but not both. Disabling both."; << "Only RED or only ULPFEC enabled, but not both. Disabling both.";
should_disable_red_and_ulpfec = true; should_disable_red_and_ulpfec = true;
} }

View file

@ -55,7 +55,7 @@ int32_t VideoRenderFrames::AddFrame(VideoFrame&& new_frame) {
// really slow system never renders any frames. // really slow system never renders any frames.
if (!incoming_frames_.empty() && if (!incoming_frames_.empty() &&
new_frame.render_time_ms() + kOldRenderTimestampMS < time_now) { new_frame.render_time_ms() + kOldRenderTimestampMS < time_now) {
RTC_LOG(LS_WARNING) << "Too old frame, timestamp=" << new_frame.timestamp(); RTC_LOG(LS_INFO) << "Too old frame, timestamp=" << new_frame.timestamp();
++frames_dropped_; ++frames_dropped_;
return -1; return -1;
} }
@ -68,7 +68,7 @@ int32_t VideoRenderFrames::AddFrame(VideoFrame&& new_frame) {
} }
if (new_frame.render_time_ms() < last_render_time_ms_) { if (new_frame.render_time_ms() < last_render_time_ms_) {
RTC_LOG(LS_WARNING) << "Frame scheduled out of order, render_time=" RTC_LOG(LS_INFO) << "Frame scheduled out of order, render_time="
<< new_frame.render_time_ms() << new_frame.render_time_ms()
<< ", latest=" << last_render_time_ms_; << ", latest=" << last_render_time_ms_;
// For more details, see bug: // For more details, see bug:

View file

@ -59,7 +59,7 @@ void Init(AudioDeviceModule* adm) {
RTC_LOG(LS_ERROR) << "Failed to query stereo playout."; RTC_LOG(LS_ERROR) << "Failed to query stereo playout.";
} }
if (adm->SetStereoPlayout(available) != 0) { if (adm->SetStereoPlayout(available) != 0) {
RTC_LOG(LS_ERROR) << "Failed to set stereo playout mode."; RTC_LOG(LS_INFO) << "Failed to set stereo playout mode.";
} }
} }
@ -79,7 +79,7 @@ void Init(AudioDeviceModule* adm) {
RTC_LOG(LS_ERROR) << "Failed to query stereo recording."; RTC_LOG(LS_ERROR) << "Failed to query stereo recording.";
} }
if (adm->SetStereoRecording(available) != 0) { if (adm->SetStereoRecording(available) != 0) {
RTC_LOG(LS_ERROR) << "Failed to set stereo recording mode."; RTC_LOG(LS_INFO) << "Failed to set stereo recording mode.";
} }
} }
} }

View file

@ -313,7 +313,7 @@ size_t LimitSimulcastLayerCount(int width,
enable_lowres_bitrate_interpolation) enable_lowres_bitrate_interpolation)
.max_layers); .max_layers);
if (layer_count > adaptive_layer_count) { if (layer_count > adaptive_layer_count) {
RTC_LOG(LS_WARNING) << "Reducing simulcast layer count from " RTC_LOG(LS_INFO) << "Reducing simulcast layer count from "
<< layer_count << " to " << adaptive_layer_count; << layer_count << " to " << adaptive_layer_count;
layer_count = adaptive_layer_count; layer_count = adaptive_layer_count;
} }

View file

@ -3108,7 +3108,7 @@ void WebRtcVideoChannel::WebRtcVideoReceiveStream::OnFrame(
estimated_remote_start_ntp_time_ms_ = frame.ntp_time_ms() - elapsed_time_ms; estimated_remote_start_ntp_time_ms_ = frame.ntp_time_ms() - elapsed_time_ms;
if (sink_ == NULL) { if (sink_ == NULL) {
RTC_LOG(LS_WARNING) << "VideoReceiveStream not connected to a VideoSink."; RTC_LOG(LS_INFO) << "VideoReceiveStream not connected to a VideoSink.";
return; return;
} }
@ -3481,7 +3481,7 @@ void WebRtcVideoChannel::ClearRecordableEncodedFrameCallback(uint32_t ssrc) {
if (stream) { if (stream) {
stream->ClearRecordableEncodedFrameCallback(); stream->ClearRecordableEncodedFrameCallback();
} else { } else {
RTC_LOG(LS_ERROR) << "Absent receive stream; ignoring clearing encoded " RTC_LOG(LS_INFO) << "Absent receive stream; ignoring clearing encoded "
"frame sink for ssrc " "frame sink for ssrc "
<< ssrc; << ssrc;
} }

View file

@ -2077,7 +2077,7 @@ bool WebRtcVoiceMediaChannel::SetOutputVolume(uint32_t ssrc, double volume) {
__func__, ssrc, volume); __func__, ssrc, volume);
const auto it = recv_streams_.find(ssrc); const auto it = recv_streams_.find(ssrc);
if (it == recv_streams_.end()) { if (it == recv_streams_.end()) {
RTC_LOG(LS_WARNING) << rtc::StringFormat( RTC_LOG(LS_INFO) << rtc::StringFormat(
"WRVMC::%s => (WARNING: no receive stream for SSRC %u)", __func__, "WRVMC::%s => (WARNING: no receive stream for SSRC %u)", __func__,
ssrc); ssrc);
return false; return false;

View file

@ -15,7 +15,7 @@
namespace webrtc { namespace webrtc {
bool AudioDeviceGeneric::BuiltInAECIsAvailable() const { bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; RTC_LOG_F(LS_INFO) << "Not supported on this platform";
return false; return false;
} }
@ -25,7 +25,7 @@ int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
} }
bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const { bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; RTC_LOG_F(LS_INFO) << "Not supported on this platform";
return false; return false;
} }
@ -35,7 +35,7 @@ int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) {
} }
bool AudioDeviceGeneric::BuiltInNSIsAvailable() const { bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; RTC_LOG_F(LS_INFO) << "Not supported on this platform";
return false; return false;
} }
@ -45,7 +45,7 @@ int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) {
} }
int32_t AudioDeviceGeneric::GetPlayoutUnderrunCount() const { int32_t AudioDeviceGeneric::GetPlayoutUnderrunCount() const {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform"; RTC_LOG_F(LS_INFO) << "Not supported on this platform";
return -1; return -1;
} }

View file

@ -538,7 +538,7 @@ AudioDeviceWindowsCore::~AudioDeviceWindowsCore() {
<< "AudioDeviceWindowsCore::~AudioDeviceWindowsCore()" << "AudioDeviceWindowsCore::~AudioDeviceWindowsCore()"
" failed to free the loaded Avrt DLL module correctly"; " failed to free the loaded Avrt DLL module correctly";
} else { } else {
RTC_LOG(LS_WARNING) << "AudioDeviceWindowsCore::~AudioDeviceWindowsCore()" RTC_LOG(LS_INFO) << "AudioDeviceWindowsCore::~AudioDeviceWindowsCore()"
" the Avrt DLL module is now unloaded"; " the Avrt DLL module is now unloaded";
} }
} }

View file

@ -440,14 +440,17 @@ bool CoreAudioBase::Init() {
audio_client.Get(), AUDCLNT_SHAREMODE_SHARED, &format_)) { audio_client.Get(), AUDCLNT_SHAREMODE_SHARED, &format_)) {
// RingRTC change to try again to match a format for multi-channel. // RingRTC change to try again to match a format for multi-channel.
if (IsInput() && (params.channels() > 2)) { if (IsInput() && (params.channels() > 2)) {
RTC_LOG(LS_WARNING) << "Trying again to match for multi-channel";
format->nChannels = params.channels(); format->nChannels = params.channels();
format->nBlockAlign = (format->wBitsPerSample / 8) * format->nChannels; format->nBlockAlign = (format->wBitsPerSample / 8) * format->nChannels;
format->nAvgBytesPerSec = format->nSamplesPerSec * format->nBlockAlign; format->nAvgBytesPerSec = format->nSamplesPerSec * format->nBlockAlign;
if (!core_audio_utility::IsFormatSupported( if (!core_audio_utility::IsFormatSupported(
audio_client.Get(), AUDCLNT_SHAREMODE_SHARED, &format_)) { audio_client.Get(), AUDCLNT_SHAREMODE_SHARED, &format_)) {
RTC_LOG(LS_ERROR) << "No multi-channel format matched";
return false; return false;
} }
} else { } else {
RTC_LOG(LS_ERROR) << "No format matched";
return false; return false;
} }
} }

View file

@ -343,7 +343,7 @@ void GoogCcNetworkController::ClampConstraints() {
min_data_rate_ = std::max(min_data_rate_, min_total_allocated_bitrate_); min_data_rate_ = std::max(min_data_rate_, min_total_allocated_bitrate_);
} }
if (max_data_rate_ < min_data_rate_) { if (max_data_rate_ < min_data_rate_) {
RTC_LOG(LS_WARNING) << "max bitrate smaller than min bitrate"; RTC_LOG(LS_INFO) << "max bitrate smaller than min bitrate";
max_data_rate_ = min_data_rate_; max_data_rate_ = min_data_rate_;
} }
if (starting_rate_ && starting_rate_ < min_data_rate_) { if (starting_rate_ && starting_rate_ < min_data_rate_) {

View file

@ -261,7 +261,7 @@ TransportFeedbackAdapter::ProcessTransportFeedbackInner(
} }
if (failed_lookups > 0) { if (failed_lookups > 0) {
RTC_LOG(LS_WARNING) << "Failed to lookup send time for " << failed_lookups RTC_LOG(LS_INFO) << "Failed to lookup send time for " << failed_lookups
<< " packet" << (failed_lookups > 1 ? "s" : "") << " packet" << (failed_lookups > 1 ? "s" : "")
<< ". Send time history too small?"; << ". Send time history too small?";
} }

View file

@ -315,7 +315,7 @@ TimeDelta PacingController::UpdateTimeAndGetElapsed(Timestamp now) {
TimeDelta elapsed_time = now - last_process_time_; TimeDelta elapsed_time = now - last_process_time_;
last_process_time_ = now; last_process_time_ = now;
if (elapsed_time > kMaxElapsedTime) { if (elapsed_time > kMaxElapsedTime) {
RTC_LOG(LS_WARNING) << "Elapsed time (" << elapsed_time.ms() RTC_LOG(LS_INFO) << "Elapsed time (" << elapsed_time.ms()
<< " ms) longer than expected, limiting to " << " ms) longer than expected, limiting to "
<< kMaxElapsedTime.ms(); << kMaxElapsedTime.ms();
elapsed_time = kMaxElapsedTime; elapsed_time = kMaxElapsedTime;

View file

@ -149,7 +149,7 @@ void PacketRouter::SendPacket(std::unique_ptr<RtpPacketToSend> packet,
uint32_t ssrc = packet->Ssrc(); uint32_t ssrc = packet->Ssrc();
auto kv = send_modules_map_.find(ssrc); auto kv = send_modules_map_.find(ssrc);
if (kv == send_modules_map_.end()) { if (kv == send_modules_map_.end()) {
RTC_LOG(LS_WARNING) RTC_LOG(LS_INFO)
<< "Failed to send packet, matching RTP module not found " << "Failed to send packet, matching RTP module not found "
"or transport error. SSRC = " "or transport error. SSRC = "
<< packet->Ssrc() << ", sequence number " << packet->SequenceNumber(); << packet->Ssrc() << ", sequence number " << packet->SequenceNumber();

View file

@ -354,9 +354,9 @@ absl::optional<TimeDelta> RTCPReceiver::OnPeriodicRttUpdate(
// Check for expired timers and if so, log and reset. // Check for expired timers and if so, log and reset.
auto now = clock_->CurrentTime(); auto now = clock_->CurrentTime();
if (RtcpRrTimeoutLocked(now)) { if (RtcpRrTimeoutLocked(now)) {
RTC_LOG_F(LS_WARNING) << "Timeout: No RTCP RR received."; RTC_LOG_F(LS_INFO) << "Timeout: No RTCP RR received.";
} else if (RtcpRrSequenceNumberTimeoutLocked(now)) { } else if (RtcpRrSequenceNumberTimeoutLocked(now)) {
RTC_LOG_F(LS_WARNING) << "Timeout: No increase in RTCP RR extended " RTC_LOG_F(LS_INFO) << "Timeout: No increase in RTCP RR extended "
"highest sequence number."; "highest sequence number.";
} }
} else { } else {

View file

@ -362,7 +362,7 @@ void RTPSender::OnReceivedNack(
const int32_t bytes_sent = ReSendPacket(seq_no); const int32_t bytes_sent = ReSendPacket(seq_no);
if (bytes_sent < 0) { if (bytes_sent < 0) {
// Failed to send one Sequence number. Give up the rest in this nack. // Failed to send one Sequence number. Give up the rest in this nack.
RTC_LOG(LS_WARNING) << "Failed resending RTP packet " << seq_no RTC_LOG(LS_INFO) << "Failed resending RTP packet " << seq_no
<< ", Discard rest of packets."; << ", Discard rest of packets.";
break; break;
} }

View file

@ -444,7 +444,7 @@ int64_t FrameBuffer::InsertFrame(std::unique_ptr<EncodedFrame> frame) {
ClearFramesAndHistory(); ClearFramesAndHistory();
last_continuous_frame_id = -1; last_continuous_frame_id = -1;
} else { } else {
RTC_LOG(LS_WARNING) << "Frame " << frame->Id() << " inserted after frame " RTC_LOG(LS_INFO) << "Frame " << frame->Id() << " inserted after frame "
<< *last_decoded_frame << *last_decoded_frame
<< " was handed off for decoding, dropping frame."; << " was handed off for decoding, dropping frame.";
return last_continuous_frame_id; return last_continuous_frame_id;
@ -580,7 +580,7 @@ bool FrameBuffer::UpdateFrameInfoWithIncomingFrame(const EncodedFrame& frame,
if (!decoded_frames_history_.WasDecoded(frame.references[i])) { if (!decoded_frames_history_.WasDecoded(frame.references[i])) {
int64_t now_ms = clock_->TimeInMilliseconds(); int64_t now_ms = clock_->TimeInMilliseconds();
if (last_log_non_decoded_ms_ + kLogNonDecodedIntervalMs < now_ms) { if (last_log_non_decoded_ms_ + kLogNonDecodedIntervalMs < now_ms) {
RTC_LOG(LS_WARNING) RTC_LOG(LS_INFO)
<< "Frame " << frame.Id() << "Frame " << frame.Id()
<< " depends on a non-decoded frame more previous than the last " << " depends on a non-decoded frame more previous than the last "
"decoded frame, dropping frame."; "decoded frame, dropping frame.";

View file

@ -354,7 +354,7 @@ std::vector<uint16_t> NackRequester::GetNackBatch(NackFilterOptions options) {
++it->second.retries; ++it->second.retries;
it->second.sent_at_time = now.ms(); it->second.sent_at_time = now.ms();
if (it->second.retries >= kMaxNackRetries) { if (it->second.retries >= kMaxNackRetries) {
RTC_LOG(LS_WARNING) << "Sequence number " << it->second.seq_num RTC_LOG(LS_INFO) << "Sequence number " << it->second.seq_num
<< " removed from NACK list due to max retries."; << " removed from NACK list due to max retries.";
it = nack_list_.erase(it); it = nack_list_.erase(it);
} else { } else {

View file

@ -162,7 +162,7 @@ RtpVp8RefFinder::FrameDecision RtpVp8RefFinder::ManageFrameInternal(
if (!(AheadOf<uint16_t, kFrameIdLength>(frame->Id(), if (!(AheadOf<uint16_t, kFrameIdLength>(frame->Id(),
layer_info_it->second[layer]))) { layer_info_it->second[layer]))) {
RTC_LOG(LS_WARNING) << "Frame with picture id " << frame->Id() RTC_LOG(LS_INFO) << "Frame with picture id " << frame->Id()
<< " and packet range [" << frame->first_seq_num() << " and packet range [" << frame->first_seq_num()
<< ", " << frame->last_seq_num() << ", " << frame->last_seq_num()
<< "] already received, " << "] already received, "

View file

@ -179,7 +179,7 @@ AsyncPacketSocket* BasicPacketSocketFactory::CreateClientTcpSocket(
} }
if (socket->Connect(remote_address) < 0) { if (socket->Connect(remote_address) < 0) {
RTC_LOG(LS_ERROR) << "TCP connect failed with error " << socket->GetError(); RTC_LOG(LS_INFO) << "TCP connect failed with error " << socket->GetError();
delete socket; delete socket;
return NULL; return NULL;
} }

View file

@ -442,7 +442,7 @@ void Connection::OnSendStunPacket(const void* data,
auto err = auto err =
port_->SendTo(data, size, remote_candidate_.address(), options, false); port_->SendTo(data, size, remote_candidate_.address(), options, false);
if (err < 0) { if (err < 0) {
RTC_LOG(LS_WARNING) << ToString() RTC_LOG(LS_INFO) << ToString()
<< ": Failed to send STUN ping " << ": Failed to send STUN ping "
" err=" " err="
<< err << " id=" << rtc::hex_encode(req->id()); << err << " id=" << rtc::hex_encode(req->id());
@ -712,7 +712,7 @@ void Connection::SendResponseMessage(const StunMessage& response) {
rtc::PacketType::kIceConnectivityCheckResponse; rtc::PacketType::kIceConnectivityCheckResponse;
auto err = port_->SendTo(buf.Data(), buf.Length(), addr, options, false); auto err = port_->SendTo(buf.Data(), buf.Length(), addr, options, false);
if (err < 0) { if (err < 0) {
RTC_LOG(LS_ERROR) << ToString() << ": Failed to send " RTC_LOG(LS_INFO) << ToString() << ": Failed to send "
<< StunMethodToString(response.type()) << StunMethodToString(response.type())
<< ", to=" << addr.ToSensitiveString() << ", err=" << err << ", to=" << addr.ToSensitiveString() << ", err=" << err
<< ", id=" << rtc::hex_encode(response.transaction_id()); << ", id=" << rtc::hex_encode(response.transaction_id());
@ -1253,7 +1253,7 @@ void Connection::MaybeUpdateLocalCandidate(ConnectionRequest* request,
const StunAddressAttribute* addr = const StunAddressAttribute* addr =
response->GetAddress(STUN_ATTR_XOR_MAPPED_ADDRESS); response->GetAddress(STUN_ATTR_XOR_MAPPED_ADDRESS);
if (!addr) { if (!addr) {
RTC_LOG(LS_WARNING) RTC_LOG(LS_INFO)
<< "Connection::OnConnectionRequestResponse - " << "Connection::OnConnectionRequestResponse - "
"No MAPPED-ADDRESS or XOR-MAPPED-ADDRESS found in the " "No MAPPED-ADDRESS or XOR-MAPPED-ADDRESS found in the "
"stun response message"; "stun response message";

View file

@ -1186,7 +1186,7 @@ void P2PTransportChannel::OnUnknownAddress(PortInterface* port,
// If we don't know that the remote ufrag and the session is shared between // If we don't know that the remote ufrag and the session is shared between
// different transports, then don't create a peer reflexive candidate. // different transports, then don't create a peer reflexive candidate.
// Otherwise, each transport would end up with one. // Otherwise, each transport would end up with one.
RTC_LOG(LS_WARNING) RTC_LOG(LS_INFO)
<< "Ignoring peer-refexive ICE candidate because the ufrag is unknown."; << "Ignoring peer-refexive ICE candidate because the ufrag is unknown.";
return; return;
} }
@ -1397,7 +1397,7 @@ void P2PTransportChannel::AddRemoteCandidate(const Candidate& candidate) {
} else { } else {
// The candidate belongs to the next generation. Its pwd will be set // The candidate belongs to the next generation. Its pwd will be set
// when the new remote ICE credentials arrive. // when the new remote ICE credentials arrive.
RTC_LOG(LS_WARNING) RTC_LOG(LS_INFO)
<< "A remote candidate arrives with an unknown ufrag: " << "A remote candidate arrives with an unknown ufrag: "
<< candidate.username(); << candidate.username();
} }

View file

@ -368,7 +368,7 @@ void Port::OnReadPacket(const char* data,
std::unique_ptr<IceMessage> msg; std::unique_ptr<IceMessage> msg;
std::string remote_username; std::string remote_username;
if (!GetStunMessage(data, size, addr, &msg, &remote_username)) { if (!GetStunMessage(data, size, addr, &msg, &remote_username)) {
RTC_LOG(LS_ERROR) << ToString() RTC_LOG(LS_INFO) << ToString()
<< ": Received non-STUN packet from unknown address: " << ": Received non-STUN packet from unknown address: "
<< addr.ToSensitiveString(); << addr.ToSensitiveString();
} else if (!msg) { } else if (!msg) {

View file

@ -93,7 +93,7 @@ class StunBindingRequest : public StunRequest {
} }
} }
void OnTimeout() override { void OnTimeout() override {
RTC_LOG(LS_ERROR) << "Binding request timed out from " RTC_LOG(LS_INFO) << "Binding request timed out from "
<< port_->GetLocalAddress().ToSensitiveString() << " (" << port_->GetLocalAddress().ToSensitiveString() << " ("
<< port_->Network()->name() << ")"; << port_->Network()->name() << ")";
port_->OnStunBindingOrResolveRequestFailed( port_->OnStunBindingOrResolveRequestFailed(
@ -307,7 +307,7 @@ int UDPPort::SendTo(const void* data,
// TODO(webrtc:9622): Use general rate limiting mechanism once it exists. // TODO(webrtc:9622): Use general rate limiting mechanism once it exists.
if (send_error_count_ < kSendErrorLogLimit) { if (send_error_count_ < kSendErrorLogLimit) {
++send_error_count_; ++send_error_count_;
RTC_LOG(LS_ERROR) << ToString() << ": UDP send of " << size RTC_LOG(LS_INFO) << ToString() << ": UDP send of " << size
<< " bytes to host " << addr.ToSensitiveString() << " (" << " bytes to host " << addr.ToSensitiveString() << " ("
<< addr.ToResolvedSensitiveString() << addr.ToResolvedSensitiveString()
<< ") failed with error " << error_; << ") failed with error " << error_;
@ -453,7 +453,7 @@ void UDPPort::OnResolveResult(const rtc::SocketAddress& input, int error) {
rtc::SocketAddress resolved; rtc::SocketAddress resolved;
if (error != 0 || !resolver_->GetResolvedAddress( if (error != 0 || !resolver_->GetResolvedAddress(
input, Network()->GetBestIP().family(), &resolved)) { input, Network()->GetBestIP().family(), &resolved)) {
RTC_LOG(LS_WARNING) << ToString() RTC_LOG(LS_INFO) << ToString()
<< ": StunPort: stun host lookup received error " << ": StunPort: stun host lookup received error "
<< error; << error;
OnStunBindingOrResolveRequestFailed(input, SERVER_NOT_REACHABLE_ERROR, OnStunBindingOrResolveRequestFailed(input, SERVER_NOT_REACHABLE_ERROR,
@ -599,7 +599,7 @@ void UDPPort::OnSendPacket(const void* data, size_t size, StunRequest* req) {
options.info_signaled_after_sent.packet_type = rtc::PacketType::kStunMessage; options.info_signaled_after_sent.packet_type = rtc::PacketType::kStunMessage;
CopyPortInformationToPacketInfo(&options.info_signaled_after_sent); CopyPortInformationToPacketInfo(&options.info_signaled_after_sent);
if (socket_->SendTo(data, size, sreq->server_addr(), options) < 0) { if (socket_->SendTo(data, size, sreq->server_addr(), options) < 0) {
RTC_LOG_ERR_EX(LERROR, socket_->GetError()) RTC_LOG_ERR_EX(LS_INFO, socket_->GetError())
<< "UDP send of " << size << " bytes to host " << "UDP send of " << size << " bytes to host "
<< sreq->server_addr().ToSensitiveString() << " (" << sreq->server_addr().ToSensitiveString() << " ("
<< sreq->server_addr().ToResolvedSensitiveString() << sreq->server_addr().ToResolvedSensitiveString()

View file

@ -376,7 +376,7 @@ void TurnPort::PrepareAddress() {
<< ProtoToString(server_address_.proto) << " @ " << ProtoToString(server_address_.proto) << " @ "
<< server_address_.address.ToSensitiveString(); << server_address_.address.ToSensitiveString();
if (!CreateTurnClientSocket()) { if (!CreateTurnClientSocket()) {
RTC_LOG(LS_ERROR) << "Failed to create TURN client socket"; RTC_LOG(LS_INFO) << "Failed to create TURN client socket";
OnAllocateError(SERVER_NOT_REACHABLE_ERROR, OnAllocateError(SERVER_NOT_REACHABLE_ERROR,
"Failed to create TURN client socket."); "Failed to create TURN client socket.");
return; return;
@ -478,13 +478,13 @@ void TurnPort::OnSocketConnect(rtc::AsyncPacketSocket* socket) {
return socket_address.ipaddr() == addr; return socket_address.ipaddr() == addr;
})) { })) {
if (socket->GetLocalAddress().IsLoopbackIP()) { if (socket->GetLocalAddress().IsLoopbackIP()) {
RTC_LOG(LS_WARNING) << "Socket is bound to the address:" RTC_LOG(LS_INFO) << "Socket is bound to the address:"
<< socket_address.ipaddr().ToSensitiveString() << socket_address.ipaddr().ToSensitiveString()
<< ", rather than an address associated with network:" << ", rather than an address associated with network:"
<< Network()->ToString() << Network()->ToString()
<< ". Still allowing it since it's localhost."; << ". Still allowing it since it's localhost.";
} else if (IPIsAny(Network()->GetBestIP())) { } else if (IPIsAny(Network()->GetBestIP())) {
RTC_LOG(LS_WARNING) RTC_LOG(LS_INFO)
<< "Socket is bound to the address:" << "Socket is bound to the address:"
<< socket_address.ipaddr().ToSensitiveString() << socket_address.ipaddr().ToSensitiveString()
<< ", rather than an address associated with network:" << ", rather than an address associated with network:"
@ -492,7 +492,7 @@ void TurnPort::OnSocketConnect(rtc::AsyncPacketSocket* socket) {
<< ". Still allowing it since it's the 'any' address" << ". Still allowing it since it's the 'any' address"
", possibly caused by multiple_routes being disabled."; ", possibly caused by multiple_routes being disabled.";
} else { } else {
RTC_LOG(LS_WARNING) << "Socket is bound to the address:" RTC_LOG(LS_INFO) << "Socket is bound to the address:"
<< socket_address.ipaddr().ToSensitiveString() << socket_address.ipaddr().ToSensitiveString()
<< ", rather than an address associated with network:" << ", rather than an address associated with network:"
<< Network()->ToString() << ". Discarding TURN port."; << Network()->ToString() << ". Discarding TURN port.";
@ -515,7 +515,7 @@ void TurnPort::OnSocketConnect(rtc::AsyncPacketSocket* socket) {
} }
void TurnPort::OnSocketClose(rtc::AsyncPacketSocket* socket, int error) { void TurnPort::OnSocketClose(rtc::AsyncPacketSocket* socket, int error) {
RTC_LOG(LS_WARNING) << ToString() RTC_LOG(LS_INFO) << ToString()
<< ": Connection with server failed with error: " << ": Connection with server failed with error: "
<< error; << error;
RTC_DCHECK(socket == socket_); RTC_DCHECK(socket == socket_);
@ -823,7 +823,7 @@ void TurnPort::OnResolveResult(rtc::AsyncResolverInterface* resolver) {
if (resolver_->GetError() != 0 || if (resolver_->GetError() != 0 ||
!resolver_->GetResolvedAddress(Network()->GetBestIP().family(), !resolver_->GetResolvedAddress(Network()->GetBestIP().family(),
&resolved_address)) { &resolved_address)) {
RTC_LOG(LS_WARNING) << ToString() << ": TURN host lookup received error " RTC_LOG(LS_INFO) << ToString() << ": TURN host lookup received error "
<< resolver_->GetError(); << resolver_->GetError();
error_ = resolver_->GetError(); error_ = resolver_->GetError();
OnAllocateError(SERVER_NOT_REACHABLE_ERROR, OnAllocateError(SERVER_NOT_REACHABLE_ERROR,
@ -845,7 +845,7 @@ void TurnPort::OnSendStunPacket(const void* data,
options.info_signaled_after_sent.packet_type = rtc::PacketType::kTurnMessage; options.info_signaled_after_sent.packet_type = rtc::PacketType::kTurnMessage;
CopyPortInformationToPacketInfo(&options.info_signaled_after_sent); CopyPortInformationToPacketInfo(&options.info_signaled_after_sent);
if (Send(data, size, options) < 0) { if (Send(data, size, options) < 0) {
RTC_LOG(LS_ERROR) << ToString() << ": Failed to send TURN message, error: " RTC_LOG(LS_INFO) << ToString() << ": Failed to send TURN message, error: "
<< socket_->GetError(); << socket_->GetError();
} }
} }
@ -1462,7 +1462,7 @@ void TurnAllocateRequest::OnErrorResponse(StunMessage* response) {
} }
void TurnAllocateRequest::OnTimeout() { void TurnAllocateRequest::OnTimeout() {
RTC_LOG(LS_WARNING) << port_->ToString() << ": TURN allocate request " RTC_LOG(LS_INFO) << port_->ToString() << ": TURN allocate request "
<< rtc::hex_encode(id()) << " timeout"; << rtc::hex_encode(id()) << " timeout";
port_->OnAllocateRequestTimeout(); port_->OnAllocateRequestTimeout();
} }

View file

@ -995,7 +995,7 @@ void BasicPortAllocatorSession::OnCandidateReady(Port* port,
// Discarding any candidate signal if port allocation status is // Discarding any candidate signal if port allocation status is
// already done with gathering. // already done with gathering.
if (!data->inprogress()) { if (!data->inprogress()) {
RTC_LOG(LS_WARNING) RTC_LOG(LS_INFO)
<< "Discarding candidate because port is already done gathering."; << "Discarding candidate because port is already done gathering.";
return; return;
} }

View file

@ -600,7 +600,7 @@ void VideoRtpSender::AttachTrack() {
} }
rtc::scoped_refptr<DtmfSenderInterface> VideoRtpSender::GetDtmfSender() const { rtc::scoped_refptr<DtmfSenderInterface> VideoRtpSender::GetDtmfSender() const {
RTC_LOG(LS_ERROR) << "Tried to get DTMF sender from video sender."; RTC_LOG(LS_INFO) << "Tried to get DTMF sender from video sender.";
return nullptr; return nullptr;
} }

View file

@ -148,7 +148,7 @@ bool RtpTransport::SendPacket(bool rtcp,
options, flags); options, flags);
if (ret != static_cast<int>(packet->size())) { if (ret != static_cast<int>(packet->size())) {
if (transport->GetError() == ENOTCONN) { if (transport->GetError() == ENOTCONN) {
RTC_LOG(LS_WARNING) << "Got ENOTCONN from transport."; RTC_LOG(LS_INFO) << "Got ENOTCONN from transport.";
SetReadyToSend(rtcp, false); SetReadyToSend(rtcp, false);
} }
return false; return false;
@ -192,7 +192,7 @@ void RtpTransport::DemuxPacket(rtc::CopyOnWriteBuffer packet,
} }
if (!rtp_demuxer_.OnRtpPacket(parsed_packet)) { if (!rtp_demuxer_.OnRtpPacket(parsed_packet)) {
RTC_LOG(LS_WARNING) << "Failed to demux RTP packet: " RTC_LOG(LS_INFO) << "Failed to demux RTP packet: "
<< RtpDemuxer::DescribePacket(parsed_packet); << RtpDemuxer::DescribePacket(parsed_packet);
} }
} }
@ -264,7 +264,7 @@ void RtpTransport::OnReadPacket(rtc::PacketTransportInternal* transport,
// RingRTC change to avoid processing RTP packets too soon // RingRTC change to avoid processing RTP packets too soon
if (!incoming_rtp_enabled_) { if (!incoming_rtp_enabled_) {
if (packet_type == cricket::RtpPacketType::kRtcp) { if (packet_type == cricket::RtpPacketType::kRtcp) {
RTC_LOG(LS_WARNING) << "Dropping RTCP packet because incoming RTP is disabled; len: " << len; RTC_LOG(LS_INFO) << "Dropping RTCP packet because incoming RTP is disabled; len: " << len;
return; return;
} else { } else {
RTC_LOG(LS_INFO) << "Dropping RTP packet because incoming RTP is disabled; len: " << len; RTC_LOG(LS_INFO) << "Dropping RTP packet because incoming RTP is disabled; len: " << len;

View file

@ -52,7 +52,7 @@ class UsedIds {
if (IsIdUsed(original_id)) { if (IsIdUsed(original_id)) {
new_id = FindUnusedId(); new_id = FindUnusedId();
RTC_LOG(LS_WARNING) << "Duplicate id found. Reassigning from " RTC_LOG(LS_INFO) << "Duplicate id found. Reassigning from "
<< original_id << " to " << new_id; << original_id << " to " << new_id;
idstruct->id = new_id; idstruct->id = new_id;
} }

View file

@ -595,7 +595,7 @@ int PhysicalSocket::TranslateOption(Option opt, int* slevel, int* sopt) {
} }
break; break;
#else #else
RTC_LOG(LS_WARNING) << "Socket::OPT_DSCP not supported."; RTC_LOG(LS_INFO) << "Socket::OPT_DSCP not supported.";
return -1; return -1;
#endif #endif
case OPT_RTP_SENDTIME_EXTN_ID: case OPT_RTP_SENDTIME_EXTN_ID:
@ -1654,7 +1654,7 @@ bool PhysicalSocketServer::Wait(int cmsWait, bool process_io) {
} }
if ((wsaEvents.lNetworkEvents & FD_CONNECT) && if ((wsaEvents.lNetworkEvents & FD_CONNECT) &&
wsaEvents.iErrorCode[FD_CONNECT_BIT] != 0) { wsaEvents.iErrorCode[FD_CONNECT_BIT] != 0) {
RTC_LOG(WARNING) RTC_LOG(LS_INFO)
<< "PhysicalSocketServer got FD_CONNECT_BIT error " << "PhysicalSocketServer got FD_CONNECT_BIT error "
<< wsaEvents.iErrorCode[FD_CONNECT_BIT]; << wsaEvents.iErrorCode[FD_CONNECT_BIT];
} }

View file

@ -309,7 +309,7 @@ const int64_t kNanosecondsPerSecond = 1000000000;
// DroppedFrameReason unavailable on macOS. // DroppedFrameReason unavailable on macOS.
CFStringRef droppedReason = nil; CFStringRef droppedReason = nil;
#endif #endif
RTCLogError(@"Dropped sample buffer. Reason: %@", (__bridge NSString *)droppedReason); RTCLogInfo(@"Dropped sample buffer. Reason: %@", (__bridge NSString *)droppedReason);
} }
#pragma mark - AVCaptureSession notifications #pragma mark - AVCaptureSession notifications
@ -344,7 +344,7 @@ const int64_t kNanosecondsPerSecond = 1000000000;
- (void)handleCaptureSessionRuntimeError:(NSNotification *)notification { - (void)handleCaptureSessionRuntimeError:(NSNotification *)notification {
NSError *error = [notification.userInfo objectForKey:AVCaptureSessionErrorKey]; NSError *error = [notification.userInfo objectForKey:AVCaptureSessionErrorKey];
RTCLogError(@"Capture session runtime error: %@", error); RTCLogInfo(@"Capture session runtime error: %@", error);
[RTC_OBJC_TYPE(RTCDispatcher) dispatchAsyncOnType:RTCDispatcherTypeCaptureSession [RTC_OBJC_TYPE(RTCDispatcher) dispatchAsyncOnType:RTCDispatcherTypeCaptureSession
block:^{ block:^{
@ -380,11 +380,11 @@ const int64_t kNanosecondsPerSecond = 1000000000;
dispatchAsyncOnType:RTCDispatcherTypeCaptureSession dispatchAsyncOnType:RTCDispatcherTypeCaptureSession
block:^{ block:^{
if (!self.hasRetriedOnFatalError) { if (!self.hasRetriedOnFatalError) {
RTCLogWarning(@"Attempting to recover from fatal capture error."); RTCLogInfo(@"Attempting to recover from fatal capture error.");
[self handleNonFatalError]; [self handleNonFatalError];
self.hasRetriedOnFatalError = YES; self.hasRetriedOnFatalError = YES;
} else { } else {
RTCLogError(@"Previous fatal error recovery failed."); RTCLogInfo(@"Previous fatal error recovery failed.");
} }
}]; }];
} }

View file

@ -452,7 +452,7 @@ OSStatus AudioDeviceIOS::OnGetPlayoutData(AudioUnitRenderActionFlags* flags,
const int64_t delta_time = now_time - last_playout_time_; const int64_t delta_time = now_time - last_playout_time_;
const int glitch_threshold = 1.6 * playout_parameters_.GetBufferSizeInMilliseconds(); const int glitch_threshold = 1.6 * playout_parameters_.GetBufferSizeInMilliseconds();
if (delta_time > glitch_threshold) { if (delta_time > glitch_threshold) {
RTCLogWarning(@"Possible playout audio glitch detected.\n" RTCLogInfo(@"Possible playout audio glitch detected.\n"
" Time since last OnGetPlayoutData was %lld ms.\n", " Time since last OnGetPlayoutData was %lld ms.\n",
delta_time); delta_time);
// Exclude extreme delta values since they do most likely not correspond // Exclude extreme delta values since they do most likely not correspond
@ -881,7 +881,7 @@ void AudioDeviceIOS::UnconfigureAudioSession() {
RTC_DCHECK_RUN_ON(&thread_checker_); RTC_DCHECK_RUN_ON(&thread_checker_);
RTCLog(@"Unconfiguring audio session."); RTCLog(@"Unconfiguring audio session.");
if (!has_configured_session_) { if (!has_configured_session_) {
RTCLogWarning(@"Audio session already unconfigured."); RTCLogInfo(@"Audio session already unconfigured.");
return; return;
} }
RTC_OBJC_TYPE(RTCAudioSession)* session = [RTC_OBJC_TYPE(RTCAudioSession) sharedInstance]; RTC_OBJC_TYPE(RTCAudioSession)* session = [RTC_OBJC_TYPE(RTCAudioSession) sharedInstance];
@ -1041,7 +1041,7 @@ int32_t AudioDeviceIOS::SpeakerMute(bool& enabled) const {
} }
int32_t AudioDeviceIOS::SetPlayoutDevice(uint16_t index) { int32_t AudioDeviceIOS::SetPlayoutDevice(uint16_t index) {
RTC_LOG_F(LS_WARNING) << "Not implemented"; RTC_LOG_F(LS_INFO) << "Not implemented";
return 0; return 0;
} }
@ -1094,7 +1094,7 @@ int32_t AudioDeviceIOS::StereoPlayoutIsAvailable(bool& available) {
} }
int32_t AudioDeviceIOS::SetStereoPlayout(bool enable) { int32_t AudioDeviceIOS::SetStereoPlayout(bool enable) {
RTC_LOG_F(LS_WARNING) << "Not implemented"; RTC_LOG_F(LS_INFO) << "Not implemented";
return -1; return -1;
} }
@ -1143,7 +1143,7 @@ int32_t AudioDeviceIOS::RecordingDeviceName(uint16_t index,
} }
int32_t AudioDeviceIOS::SetRecordingDevice(uint16_t index) { int32_t AudioDeviceIOS::SetRecordingDevice(uint16_t index) {
RTC_LOG_F(LS_WARNING) << "Not implemented"; RTC_LOG_F(LS_INFO) << "Not implemented";
return 0; return 0;
} }

View file

@ -329,7 +329,7 @@ AudioDeviceModuleIOS::AudioDeviceModuleIOS(bool bypass_voice_processing)
return -1; return -1;
} }
if (audio_device_->SetStereoPlayout(enable)) { if (audio_device_->SetStereoPlayout(enable)) {
RTC_LOG(WARNING) << "stereo playout is not supported"; RTC_LOG(INFO) << "stereo playout is not supported";
return -1; return -1;
} }
int8_t nChannels(1); int8_t nChannels(1);

View file

@ -280,7 +280,7 @@ bool VoiceProcessingAudioUnit::Initialize(Float64 sample_rate) {
UInt32 agc_is_enabled = 0; UInt32 agc_is_enabled = 0;
result = GetAGCState(vpio_unit_, &agc_is_enabled); result = GetAGCState(vpio_unit_, &agc_is_enabled);
if (result != noErr) { if (result != noErr) {
RTCLogError(@"Failed to get AGC state (1st attempt). " RTCLogInfo(@"Failed to get AGC state (1st attempt). "
"Error=%ld.", "Error=%ld.",
(long)result); (long)result);
// Example of error code: kAudioUnitErr_NoConnection (-10876). // Example of error code: kAudioUnitErr_NoConnection (-10876).

View file

@ -40,7 +40,7 @@ void BufferedFrameDecryptor::ManageEncryptedFrame(
switch (DecryptFrame(encrypted_frame.get())) { switch (DecryptFrame(encrypted_frame.get())) {
case FrameDecision::kStash: case FrameDecision::kStash:
if (stashed_frames_.size() >= kMaxStashedFrames) { if (stashed_frames_.size() >= kMaxStashedFrames) {
RTC_LOG(LS_WARNING) << "Encrypted frame stash full poping oldest item."; RTC_LOG(LS_INFO) << "Encrypted frame stash full poping oldest item.";
stashed_frames_.pop_front(); stashed_frames_.pop_front();
} }
stashed_frames_.push_back(std::move(encrypted_frame)); stashed_frames_.push_back(std::move(encrypted_frame));

View file

@ -918,7 +918,7 @@ void VideoReceiveStream2::HandleFrameBufferTimeout(int64_t now_ms,
if (stream_is_active && !IsReceivingKeyFrame(now_ms) && if (stream_is_active && !IsReceivingKeyFrame(now_ms) &&
(!config_.crypto_options.sframe.require_frame_encryption || (!config_.crypto_options.sframe.require_frame_encryption ||
rtp_video_stream_receiver_.IsDecryptable())) { rtp_video_stream_receiver_.IsDecryptable())) {
RTC_LOG(LS_WARNING) << "No decodable frame in " << wait_ms RTC_LOG(LS_INFO) << "No decodable frame in " << wait_ms
<< " ms, requesting keyframe."; << " ms, requesting keyframe.";
RequestKeyFrame(now_ms); RequestKeyFrame(now_ms);
} }