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.
This commit is contained in:
Andreas Kling 2023-01-09 14:00:26 +01:00
parent 4ee40aeefd
commit a915fee5f3
Notes: sideshowbarker 2024-07-17 07:25:39 +09:00

View file

@ -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 = {