Deprecate and remove usage for WARNING log level

Bug: webrtc:13362
Change-Id: Ida112158e4ac5f667e533a0ebfedb400c84df4d9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/239124
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35425}
This commit is contained in:
Harald Alvestrand
2021-11-27 21:31:08 +00:00
committed by WebRTC LUCI CQ
parent 150503566c
commit ef5b21e637
34 changed files with 91 additions and 85 deletions

View File

@ -343,9 +343,9 @@ bool SimplePeerConnection::SetRemoteDescription(const char* type,
webrtc::SessionDescriptionInterface* session_description(
webrtc::CreateSessionDescription(desc_type, remote_desc, &error));
if (!session_description) {
RTC_LOG(WARNING) << "Can't parse received session description message. "
"SdpParseError was: "
<< error.description;
RTC_LOG(LS_WARNING) << "Can't parse received session description message. "
"SdpParseError was: "
<< error.description;
return false;
}
RTC_LOG(LS_INFO) << " Received session description :" << remote_desc;
@ -365,13 +365,13 @@ bool SimplePeerConnection::AddIceCandidate(const char* candidate,
std::unique_ptr<webrtc::IceCandidateInterface> ice_candidate(
webrtc::CreateIceCandidate(sdp_mid, sdp_mlineindex, candidate, &error));
if (!ice_candidate.get()) {
RTC_LOG(WARNING) << "Can't parse received candidate message. "
"SdpParseError was: "
<< error.description;
RTC_LOG(LS_WARNING) << "Can't parse received candidate message. "
"SdpParseError was: "
<< error.description;
return false;
}
if (!peer_connection_->AddIceCandidate(ice_candidate.get())) {
RTC_LOG(WARNING) << "Failed to apply the received candidate";
RTC_LOG(LS_WARNING) << "Failed to apply the received candidate";
return false;
}
RTC_LOG(LS_INFO) << " Received candidate :" << candidate;