Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: net/dns/mdns_client_impl.cc

Issue 177373013: [mDNS] Move logging from LOG(WARNING) to DVLOG(1) to not spam the console (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/dns/record_parsed.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mdns_client_impl.cc
diff --git a/net/dns/mdns_client_impl.cc b/net/dns/mdns_client_impl.cc
index 231f0c75baa26814210e1467c33f8fbfe17ad88b..68cee7a87ec1572b395a964ec6b4de588fedb4b1 100644
--- a/net/dns/mdns_client_impl.cc
+++ b/net/dns/mdns_client_impl.cc
@@ -202,7 +202,7 @@ void MDnsClientImpl::Core::HandlePacket(DnsResponse* response,
std::map<MDnsCache::Key, MDnsCache::UpdateType> update_keys;
if (!response->InitParseWithoutQuery(bytes_read)) {
- LOG(WARNING) << "Could not understand an mDNS packet.";
+ DVLOG(1) << "Could not understand an mDNS packet.";
return; // Message is unreadable.
}
@@ -220,10 +220,10 @@ void MDnsClientImpl::Core::HandlePacket(DnsResponse* response,
&parser, base::Time::Now());
if (!record) {
- LOG(WARNING) << "Could not understand an mDNS record.";
+ DVLOG(1) << "Could not understand an mDNS record.";
if (offset == parser.GetOffset()) {
- LOG(WARNING) << "Abandoned parsing the rest of the packet.";
+ DVLOG(1) << "Abandoned parsing the rest of the packet.";
return; // The parser did not advance, abort reading the packet.
} else {
continue; // We may be able to extract other records from the packet.
@@ -232,7 +232,7 @@ void MDnsClientImpl::Core::HandlePacket(DnsResponse* response,
if ((record->klass() & dns_protocol::kMDnsClassMask) !=
dns_protocol::kClassIN) {
- LOG(WARNING) << "Received an mDNS record with non-IN class. Ignoring.";
+ DVLOG(1) << "Received an mDNS record with non-IN class. Ignoring.";
continue; // Ignore all records not in the IN class.
}
« no previous file with comments | « no previous file | net/dns/record_parsed.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698