From b2d2623902d9fb676d272ac03710b7cc2d0c5a68 Mon Sep 17 00:00:00 2001 From: Peter Thatcher Date: Fri, 15 May 2015 11:25:14 -0700 Subject: [PATCH] Don't use rtc::LogCheckLevel, because it breaks Chrome. R=guoweis@webrtc.org Review URL: https://webrtc-codereview.appspot.com/55429004 Cr-Commit-Position: refs/heads/master@{#9196} --- webrtc/p2p/base/port.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc index 9a7463cb3..df5f4619e 100644 --- a/webrtc/p2p/base/port.cc +++ b/webrtc/p2p/base/port.cc @@ -1146,7 +1146,7 @@ void Connection::PrintPingsSinceLastResponse(std::string* s, size_t max) { void Connection::UpdateState(uint32 now) { uint32 rtt = ConservativeRTTEstimate(rtt_); - if (rtc::LogCheckLevel(rtc::LS_VERBOSE)) { + if (LOG_CHECK_LEVEL(LS_VERBOSE)) { std::string pings; PrintPingsSinceLastResponse(&pings, 5); LOG_J(LS_VERBOSE, this) << "UpdateState()" @@ -1319,7 +1319,9 @@ void Connection::OnConnectionRequestResponse(ConnectionRequest* request, ReceivedPing(); } - if (rtc::LogCheckLevel(sev)) { + // TODO(pthatcher): Figure out how to use LOG_CHECK_LEVEL with a + // variable. rtc:LogCheckLevel doesn't work within Chrome. + if (LOG_CHECK_LEVEL_V(sev)) { std::string pings; PrintPingsSinceLastResponse(&pings, 5); LOG_JV(sev, this) << "Received STUN ping response"