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:
@ -1146,7 +1146,7 @@ void Connection::PrintPingsSinceLastResponse(std::string* s, size_t max) {
|
|||||||
void Connection::UpdateState(uint32 now) {
|
void Connection::UpdateState(uint32 now) {
|
||||||
uint32 rtt = ConservativeRTTEstimate(rtt_);
|
uint32 rtt = ConservativeRTTEstimate(rtt_);
|
||||||
|
|
||||||
if (rtc::LogCheckLevel(rtc::LS_VERBOSE)) {
|
if (LOG_CHECK_LEVEL(LS_VERBOSE)) {
|
||||||
std::string pings;
|
std::string pings;
|
||||||
PrintPingsSinceLastResponse(&pings, 5);
|
PrintPingsSinceLastResponse(&pings, 5);
|
||||||
LOG_J(LS_VERBOSE, this) << "UpdateState()"
|
LOG_J(LS_VERBOSE, this) << "UpdateState()"
|
||||||
@ -1319,7 +1319,9 @@ void Connection::OnConnectionRequestResponse(ConnectionRequest* request,
|
|||||||
ReceivedPing();
|
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;
|
std::string pings;
|
||||||
PrintPingsSinceLastResponse(&pings, 5);
|
PrintPingsSinceLastResponse(&pings, 5);
|
||||||
LOG_JV(sev, this) << "Received STUN ping response"
|
LOG_JV(sev, this) << "Received STUN ping response"
|
||||||
|
Reference in New Issue
Block a user