Sfoglia il codice sorgente

LibWeb: Move "Stop parsing!" behind PARSER_DEBUG

This makes SerenityOS's IRC client a lot less chatty.
Nico Weber 5 anni fa
parent
commit
e9d18e35d6
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Libraries/LibWeb/Parser/HTMLDocumentParser.cpp

+ 2 - 0
Libraries/LibWeb/Parser/HTMLDocumentParser.cpp

@@ -80,7 +80,9 @@ void HTMLDocumentParser::run(const URL& url)
         process_using_the_rules_for(m_insertion_mode, token);
         process_using_the_rules_for(m_insertion_mode, token);
 
 
         if (m_stop_parsing) {
         if (m_stop_parsing) {
+#ifdef PARSER_DEBUG
             dbg() << "Stop parsing! :^)";
             dbg() << "Stop parsing! :^)";
+#endif
             break;
             break;
         }
         }
     }
     }