summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Applications/Browser/BrowserWindow.cpp2
-rw-r--r--Userland/Libraries/LibWeb/Loader/FrameLoader.cpp10
-rw-r--r--Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp6
3 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp
index 4aafd3aea3..7b2743a812 100644
--- a/Userland/Applications/Browser/BrowserWindow.cpp
+++ b/Userland/Applications/Browser/BrowserWindow.cpp
@@ -560,7 +560,7 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
new_tab.load(url);
- dbgln("Added new tab {:p}, loading {}", &new_tab, url);
+ dbgln_if(SPAM_DEBUG, "Added new tab {:p}, loading {}", &new_tab, url);
if (activate)
m_tab_widget->set_active_widget(&new_tab);
diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
index 99650330e6..91ddc557ad 100644
--- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
+++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
@@ -171,7 +171,7 @@ bool FrameLoader::load(const LoadRequest& request, Type type)
ResourceLoader::the().load(
favicon_url,
[this, favicon_url](auto data, auto&, auto) {
- dbgln("Favicon downloaded, {} bytes from {}", data.size(), favicon_url);
+ dbgln_if(SPAM_DEBUG, "Favicon downloaded, {} bytes from {}", data.size(), favicon_url);
RefPtr<Gfx::Bitmap> favicon_bitmap;
auto decoder = Gfx::ImageDecoder::try_create(data);
if (!decoder) {
@@ -181,7 +181,7 @@ bool FrameLoader::load(const LoadRequest& request, Type type)
if (!favicon_bitmap)
dbgln("Could not decode favicon {}", favicon_url);
else
- dbgln("Decoded favicon, {}", favicon_bitmap->size());
+ dbgln_if(IMAGE_DECODER_DEBUG, "Decoded favicon, {}", favicon_bitmap->size());
}
load_favicon(favicon_bitmap);
},
@@ -197,7 +197,7 @@ bool FrameLoader::load(const LoadRequest& request, Type type)
bool FrameLoader::load(const URL& url, Type type)
{
- dbgln("FrameLoader::load: {}", url);
+ dbgln_if(SPAM_DEBUG, "FrameLoader::load: {}", url);
if (!url.is_valid()) {
load_error_page(url, "Invalid URL");
@@ -275,9 +275,9 @@ void FrameLoader::resource_did_load()
}
if (resource()->has_encoding()) {
- dbgln("This content has MIME type '{}', encoding '{}'", resource()->mime_type(), resource()->encoding().value());
+ dbgln_if(RESOURCE_DEBUG, "This content has MIME type '{}', encoding '{}'", resource()->mime_type(), resource()->encoding().value());
} else {
- dbgln("This content has MIME type '{}', encoding unknown", resource()->mime_type());
+ dbgln_if(RESOURCE_DEBUG, "This content has MIME type '{}', encoding unknown", resource()->mime_type());
}
auto document = DOM::Document::create();
diff --git a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp
index 13e4ff92f6..7f0986a519 100644
--- a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp
+++ b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp
@@ -105,7 +105,7 @@ void ResourceLoader::load(const LoadRequest& request, Function<void(ReadonlyByte
}
if (url.protocol() == "about") {
- dbgln("Loading about: URL {}", url);
+ dbgln_if(SPAM_DEBUG, "Loading about: URL {}", url);
deferred_invoke([success_callback = move(success_callback)](auto&) {
success_callback(String::empty().to_byte_buffer(), {}, {});
});
@@ -113,7 +113,7 @@ void ResourceLoader::load(const LoadRequest& request, Function<void(ReadonlyByte
}
if (url.protocol() == "data") {
- dbgln("ResourceLoader loading a data URL with mime-type: '{}', base64={}, payload='{}'",
+ dbgln_if(SPAM_DEBUG, "ResourceLoader loading a data URL with mime-type: '{}', base64={}, payload='{}'",
url.data_mime_type(),
url.data_payload_is_base64(),
url.data_payload());
@@ -213,7 +213,7 @@ bool ResourceLoader::is_port_blocked(int port)
void ResourceLoader::clear_cache()
{
- dbgln("Clearing {} items from ResourceLoader cache", s_resource_cache.size());
+ dbgln_if(CACHE_DEBUG, "Clearing {} items from ResourceLoader cache", s_resource_cache.size());
s_resource_cache.clear();
}