Skip to content

Commit 8877a4f

Browse files
AtkinsSJtcl3
authored andcommitted
LibWeb/CSS: Hide "No property (from N properties) matched foo" message
This greatly reduces the amount of log spam on certain websites.
1 parent 12ca074 commit 8877a4f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Libraries/LibWeb/CSS/Parser/Parser.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -8860,9 +8860,11 @@ Parser::ParseErrorOr<NonnullRefPtr<CSSStyleValue>> Parser::parse_css_value(Prope
88608860
}
88618861

88628862
// No property matched, so we're done.
8863-
dbgln("No property (from {} properties) matched {}", unassigned_properties.size(), stream.next_token().to_debug_string());
8864-
for (auto id : unassigned_properties)
8865-
dbgln(" {}", string_from_property_id(id));
8863+
if constexpr (CSS_PARSER_DEBUG) {
8864+
dbgln("No property (from {} properties) matched {}", unassigned_properties.size(), stream.next_token().to_debug_string());
8865+
for (auto id : unassigned_properties)
8866+
dbgln(" {}", string_from_property_id(id));
8867+
}
88668868
break;
88678869
}
88688870

0 commit comments

Comments
 (0)