summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-13 15:27:53 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-13 15:27:53 +0200
commite46ee46ed69990e89871aece4800e8f1bcf7f645 (patch)
tree08e931173fae1c0d404ee194fde1980f2471f558 /Libraries
parent7e8945601a720b49159683ff760fbcd626b95f82 (diff)
downloadserenity-e46ee46ed69990e89871aece4800e8f1bcf7f645.zip
LibWeb: Silence debug spam about reuse of cached resources
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibWeb/Loader/ResourceLoader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Libraries/LibWeb/Loader/ResourceLoader.cpp
index 4121480274..f8c4d5a3ee 100644
--- a/Libraries/LibWeb/Loader/ResourceLoader.cpp
+++ b/Libraries/LibWeb/Loader/ResourceLoader.cpp
@@ -35,6 +35,8 @@
#include <LibWeb/Loader/Resource.h>
#include <LibWeb/Loader/ResourceLoader.h>
+//#define CACHE_DEBUG
+
namespace Web {
ResourceLoader& ResourceLoader::the()
@@ -82,7 +84,9 @@ RefPtr<Resource> ResourceLoader::load_resource(Resource::Type type, const LoadRe
if (it->value->type() != type) {
dbg() << "FIXME: Not using cached resource for " << request.url() << " since there's a type mismatch.";
} else {
+#ifdef CACHE_DEBUG
dbg() << "Reusing cached resource for: " << request.url();
+#endif
return it->value;
}
}