mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
LibWeb: Silence debug spam about reuse of cached resources
This commit is contained in:
parent
7e8945601a
commit
e46ee46ed6
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue