mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-17 07:37:51 +01:00
Reduce some logging at INFO level by moving log statements
from LS_INFO to LS_VERBOSE. By default, unit tests run with logging at info level. A random run today produced more than 70.000 lines of output. This CL would reduce that by approximately 15.000. Bug: none Change-Id: Ie62708cebf109510a2443aa5ab5c4e645ffc6707 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161950 Commit-Queue: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30077}
This commit is contained in:
parent
08c46adc1e
commit
977b265702
7 changed files with 23 additions and 15 deletions
11
call/call.cc
11
call/call.cc
|
@ -1044,8 +1044,15 @@ void Call::UpdateAggregateNetworkState() {
|
||||||
((have_video && video_network_state_ == kNetworkUp) ||
|
((have_video && video_network_state_ == kNetworkUp) ||
|
||||||
(have_audio && audio_network_state_ == kNetworkUp));
|
(have_audio && audio_network_state_ == kNetworkUp));
|
||||||
|
|
||||||
RTC_LOG(LS_INFO) << "UpdateAggregateNetworkState: aggregate_state="
|
if (aggregate_network_up != aggregate_network_up_) {
|
||||||
<< (aggregate_network_up ? "up" : "down");
|
RTC_LOG(LS_INFO)
|
||||||
|
<< "UpdateAggregateNetworkState: aggregate_state change to "
|
||||||
|
<< (aggregate_network_up ? "up" : "down");
|
||||||
|
} else {
|
||||||
|
RTC_LOG(LS_VERBOSE)
|
||||||
|
<< "UpdateAggregateNetworkState: aggregate_state remains at "
|
||||||
|
<< (aggregate_network_up ? "up" : "down");
|
||||||
|
}
|
||||||
aggregate_network_up_ = aggregate_network_up;
|
aggregate_network_up_ = aggregate_network_up;
|
||||||
|
|
||||||
transport_send_ptr_->OnNetworkAvailability(aggregate_network_up);
|
transport_send_ptr_->OnNetworkAvailability(aggregate_network_up);
|
||||||
|
|
|
@ -302,8 +302,8 @@ void RtpTransportControllerSend::OnNetworkRouteChanged(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void RtpTransportControllerSend::OnNetworkAvailability(bool network_available) {
|
void RtpTransportControllerSend::OnNetworkAvailability(bool network_available) {
|
||||||
RTC_LOG(LS_INFO) << "SignalNetworkState "
|
RTC_LOG(LS_VERBOSE) << "SignalNetworkState "
|
||||||
<< (network_available ? "Up" : "Down");
|
<< (network_available ? "Up" : "Down");
|
||||||
NetworkAvailability msg;
|
NetworkAvailability msg;
|
||||||
msg.at_time = Timestamp::ms(clock_->TimeInMilliseconds());
|
msg.at_time = Timestamp::ms(clock_->TimeInMilliseconds());
|
||||||
msg.network_available = network_available;
|
msg.network_available = network_available;
|
||||||
|
|
|
@ -233,16 +233,16 @@ void WebRtcVoiceEngine::Init() {
|
||||||
"rtc-low-prio", webrtc::TaskQueueFactory::Priority::LOW)));
|
"rtc-low-prio", webrtc::TaskQueueFactory::Priority::LOW)));
|
||||||
|
|
||||||
// Load our audio codec lists.
|
// Load our audio codec lists.
|
||||||
RTC_LOG(LS_INFO) << "Supported send codecs in order of preference:";
|
RTC_LOG(LS_VERBOSE) << "Supported send codecs in order of preference:";
|
||||||
send_codecs_ = CollectCodecs(encoder_factory_->GetSupportedEncoders());
|
send_codecs_ = CollectCodecs(encoder_factory_->GetSupportedEncoders());
|
||||||
for (const AudioCodec& codec : send_codecs_) {
|
for (const AudioCodec& codec : send_codecs_) {
|
||||||
RTC_LOG(LS_INFO) << ToString(codec);
|
RTC_LOG(LS_VERBOSE) << ToString(codec);
|
||||||
}
|
}
|
||||||
|
|
||||||
RTC_LOG(LS_INFO) << "Supported recv codecs in order of preference:";
|
RTC_LOG(LS_VERBOSE) << "Supported recv codecs in order of preference:";
|
||||||
recv_codecs_ = CollectCodecs(decoder_factory_->GetSupportedDecoders());
|
recv_codecs_ = CollectCodecs(decoder_factory_->GetSupportedDecoders());
|
||||||
for (const AudioCodec& codec : recv_codecs_) {
|
for (const AudioCodec& codec : recv_codecs_) {
|
||||||
RTC_LOG(LS_INFO) << ToString(codec);
|
RTC_LOG(LS_VERBOSE) << ToString(codec);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE)
|
#if defined(WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE)
|
||||||
|
|
|
@ -447,10 +447,11 @@ void MatchedFilter::LogFilterProperties(int sample_rate_hz,
|
||||||
int start = static_cast<int>(alignment_shift * downsampling_factor);
|
int start = static_cast<int>(alignment_shift * downsampling_factor);
|
||||||
int end = static_cast<int>((alignment_shift + filters_[k].size()) *
|
int end = static_cast<int>((alignment_shift + filters_[k].size()) *
|
||||||
downsampling_factor);
|
downsampling_factor);
|
||||||
RTC_LOG(LS_INFO) << "Filter " << k << ": start: "
|
RTC_LOG(LS_VERBOSE) << "Filter " << k << ": start: "
|
||||||
<< (start - static_cast<int>(shift)) / kFsBy1000
|
<< (start - static_cast<int>(shift)) / kFsBy1000
|
||||||
<< " ms, end: "
|
<< " ms, end: "
|
||||||
<< (end - static_cast<int>(shift)) / kFsBy1000 << " ms.";
|
<< (end - static_cast<int>(shift)) / kFsBy1000
|
||||||
|
<< " ms.";
|
||||||
alignment_shift += filter_intra_lag_shift_;
|
alignment_shift += filter_intra_lag_shift_;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -722,7 +722,7 @@ bool DataChannel::SendControlMessage(const rtc::CopyOnWriteBuffer& buffer) {
|
||||||
cricket::SendDataResult send_result = cricket::SDR_SUCCESS;
|
cricket::SendDataResult send_result = cricket::SDR_SUCCESS;
|
||||||
bool retval = provider_->SendData(send_params, buffer, &send_result);
|
bool retval = provider_->SendData(send_params, buffer, &send_result);
|
||||||
if (retval) {
|
if (retval) {
|
||||||
RTC_LOG(LS_INFO) << "Sent CONTROL message on channel " << config_.id;
|
RTC_LOG(LS_VERBOSE) << "Sent CONTROL message on channel " << config_.id;
|
||||||
|
|
||||||
if (handshake_state_ == kHandshakeShouldSendAck) {
|
if (handshake_state_ == kHandshakeShouldSendAck) {
|
||||||
handshake_state_ = kHandshakeReady;
|
handshake_state_ = kHandshakeReady;
|
||||||
|
|
|
@ -5924,7 +5924,7 @@ cricket::ChannelInterface* PeerConnection::GetChannel(
|
||||||
bool PeerConnection::GetSctpSslRole(rtc::SSLRole* role) {
|
bool PeerConnection::GetSctpSslRole(rtc::SSLRole* role) {
|
||||||
RTC_DCHECK_RUN_ON(signaling_thread());
|
RTC_DCHECK_RUN_ON(signaling_thread());
|
||||||
if (!local_description() || !remote_description()) {
|
if (!local_description() || !remote_description()) {
|
||||||
RTC_LOG(LS_INFO)
|
RTC_LOG(LS_VERBOSE)
|
||||||
<< "Local and Remote descriptions must be applied to get the "
|
<< "Local and Remote descriptions must be applied to get the "
|
||||||
"SSL Role of the SCTP transport.";
|
"SSL Role of the SCTP transport.";
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -780,7 +780,7 @@ void OpenSSLAdapter::SSLInfoCallback(const SSL* s, int where, int ret) {
|
||||||
str = "SSL_accept";
|
str = "SSL_accept";
|
||||||
}
|
}
|
||||||
if (where & SSL_CB_LOOP) {
|
if (where & SSL_CB_LOOP) {
|
||||||
RTC_DLOG(LS_INFO) << str << ":" << SSL_state_string_long(s);
|
RTC_DLOG(LS_VERBOSE) << str << ":" << SSL_state_string_long(s);
|
||||||
} else if (where & SSL_CB_ALERT) {
|
} else if (where & SSL_CB_ALERT) {
|
||||||
str = (where & SSL_CB_READ) ? "read" : "write";
|
str = (where & SSL_CB_READ) ? "read" : "write";
|
||||||
RTC_DLOG(LS_INFO) << "SSL3 alert " << str << ":"
|
RTC_DLOG(LS_INFO) << "SSL3 alert " << str << ":"
|
||||||
|
|
Loading…
Reference in a new issue