diff options
author | Andreas Kling <kling@serenityos.org> | 2023-01-09 14:00:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-09 14:00:26 +0100 |
commit | a915fee5f39804d54d6beeb0d793a4b02265cfda (patch) | |
tree | 145329e08bb04bb25beb9c2fd16b08b1bd2a36ab | |
parent | 4ee40aeefd7531ca0e19d1424addb09030e029d4 (diff) | |
download | serenity-a915fee5f39804d54d6beeb0d793a4b02265cfda.zip |
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.
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<FlyString> s_quirks_public_ids = { |