diff options
author | TheFightingCatfish <seekingblues@gmail.com> | 2021-08-07 16:37:26 +0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-08 00:33:14 +0200 |
commit | 652fa544952d58efa72e3d230f09404ccc9fab3e (patch) | |
tree | 7f6f32e565e167b75c8b133c21b77f5428059933 /Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp | |
parent | e80b887059a487f560e4c0408f1cf0c480461d9c (diff) | |
download | serenity-652fa544952d58efa72e3d230f09404ccc9fab3e.zip |
Browser+LibWeb: Silence some debug spams
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } |