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