Sfoglia il codice sorgente

LibWeb: Only log HTML parser errors when HTML_PARSER_DEBUG is enabled

At this point, the parser is reliable enough that we don't need to spam
the debug log about minor parsing issues on every websites.
Andreas Kling 2 anni fa
parent
commit
a915fee5f3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp

+ 1 - 1
Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp

@@ -37,7 +37,7 @@ namespace Web::HTML {
 
 
 static inline void log_parse_error(SourceLocation const& location = SourceLocation::current())
 static inline void log_parse_error(SourceLocation const& location = SourceLocation::current())
 {
 {
-    dbgln("Parse error! {}", location);
+    dbgln_if(HTML_PARSER_DEBUG, "Parse error! {}", location);
 }
 }
 
 
 static Vector<FlyString> s_quirks_public_ids = {
 static Vector<FlyString> s_quirks_public_ids = {