Browse Source

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 years ago
parent
commit
a915fee5f3
1 changed files with 1 additions and 1 deletions
  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())
 {
-    dbgln("Parse error! {}", location);
+    dbgln_if(HTML_PARSER_DEBUG, "Parse error! {}", location);
 }
 
 static Vector<FlyString> s_quirks_public_ids = {