Explorar el Código

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

Andreas Kling hace 1 año
padre
commit
b7f80e7081
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp

+ 1 - 1
Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp

@@ -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;
     }