From a915fee5f39804d54d6beeb0d793a4b02265cfda Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 9 Jan 2023 14:00:26 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp index 27d9b1e3eb..8194593d14 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp +++ b/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 s_quirks_public_ids = {