From db93db8100d87ea063c1f4b686cf4368d7990937 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 1 Jun 2020 12:39:58 +0200 Subject: LibWeb: Put whining about tokenizer errors behind an #ifdef Real web content has *tons* of tokenizer errors and we don't need to complain every time as that makes the debug log unbearable. --- Libraries/LibWeb/Parser/HTMLTokenizer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp index 41559630fd..6fa7554c44 100644 --- a/Libraries/LibWeb/Parser/HTMLTokenizer.cpp +++ b/Libraries/LibWeb/Parser/HTMLTokenizer.cpp @@ -34,10 +34,14 @@ //#define TOKENIZER_TRACE +#ifdef TOKENIZER_TRACE #define PARSE_ERROR() \ do { \ dbg() << "Parse error (tokenization)" << __PRETTY_FUNCTION__ << " @ " << __LINE__; \ } while (0) +#else +#define PARSE_ERROR() +#endif #define CONSUME_NEXT_INPUT_CHARACTER \ current_input_character = next_codepoint(); -- cgit v1.2.3