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

Unified Diff: third_party/WebKit/Source/core/loader/LinkLoader.cpp

Issue 2646033003: DevTools: streamline console logging levels, migrate 'log' to 'info' level, 'debug' to 'verbose' le… (Closed)
Patch Set: same with front-end fixes Created 3 years, 11 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
Index: third_party/WebKit/Source/core/loader/LinkLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/LinkLoader.cpp b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
index 9ac9dc539d17c6fe2c53f07727b9c3665345bc3e..ab8a69bf0b805e3abfb8562c0e15a73c6da72ca6 100644
--- a/third_party/WebKit/Source/core/loader/LinkLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/LinkLoader.cpp
@@ -144,7 +144,7 @@ static void dnsPrefetchIfNeeded(
!href.isEmpty()) {
if (settings->getLogDnsPrefetchAndPreconnect()) {
document.addConsoleMessage(ConsoleMessage::create(
- OtherMessageSource, DebugMessageLevel,
+ OtherMessageSource, VerboseMessageLevel,
String("DNS prefetch triggered for " + href.host())));
}
networkHintsInterface.dnsPrefetchHost(href.host());
@@ -167,11 +167,11 @@ static void preconnectIfNeeded(
Settings* settings = document.settings();
if (settings && settings->getLogDnsPrefetchAndPreconnect()) {
document.addConsoleMessage(ConsoleMessage::create(
- OtherMessageSource, DebugMessageLevel,
+ OtherMessageSource, VerboseMessageLevel,
String("Preconnect triggered for ") + href.getString()));
if (crossOrigin != CrossOriginAttributeNotSet) {
document.addConsoleMessage(ConsoleMessage::create(
- OtherMessageSource, DebugMessageLevel,
+ OtherMessageSource, VerboseMessageLevel,
String("Preconnect CORS setting is ") +
String((crossOrigin == CrossOriginAttributeAnonymous)
? "anonymous"
@@ -333,7 +333,7 @@ static Resource* preloadIfNeeded(const LinkRelAttribute& relAttribute,
Settings* settings = document.settings();
if (settings && settings->getLogPreload()) {
document.addConsoleMessage(ConsoleMessage::create(
- OtherMessageSource, DebugMessageLevel,
+ OtherMessageSource, VerboseMessageLevel,
String("Preload triggered for " + href.host() + href.path())));
}
linkRequest.setForPreload(true, monotonicallyIncreasingTime());

Powered by Google App Engine
This is Rietveld 408576698