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}
This commit is contained in:
Peter Thatcher
2015-05-15 11:25:14 -07:00
parent 1cf6f8101a
commit b2d2623902

View File

@ -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"