1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

LibWeb: Put debug spam about failed favicon decodes behind a flag

This commit is contained in:
Andreas Kling 2024-02-25 13:34:21 +01:00
parent 8a829be25c
commit b7f80e7081

View file

@ -446,7 +446,7 @@ static bool decode_favicon(ReadonlyBytes favicon_data, URL const& favicon_url, J
{
auto decoded_image = Platform::ImageCodecPlugin::the().decode_image(favicon_data);
if (!decoded_image.has_value() || decoded_image->frames.is_empty()) {
dbgln("Could not decode favicon {}", favicon_url);
dbgln_if(IMAGE_DECODER_DEBUG, "Could not decode favicon {}", favicon_url);
return false;
}