LibWeb: Hide XHR send debug messages behind SPAM_DEBUG

This commit is contained in:
Andrew Kaster 2023-12-08 14:09:09 -07:00 committed by Tim Flynn
parent 04670c7a06
commit 9ab312e001
Notes: sideshowbarker 2024-07-17 12:02:22 +09:00

View file

@ -9,6 +9,7 @@
*/
#include <AK/ByteBuffer.h>
#include <AK/Debug.h>
#include <AK/GenericLexer.h>
#include <AK/QuickSort.h>
#include <LibJS/Runtime/ArrayBuffer.h>
@ -700,7 +701,7 @@ WebIDL::ExceptionOr<void> XMLHttpRequest::send(Optional<DocumentOrXMLHttpRequest
// 10. Set thiss send() flag.
m_send = true;
dbgln("{}XHR send from {} to {}", m_synchronous ? "\033[33;1mSynchronous\033[0m " : "", HTML::relevant_settings_object(*this).creation_url, m_request_url);
dbgln_if(SPAM_DEBUG, "{}XHR send from {} to {}", m_synchronous ? "\033[33;1mSynchronous\033[0m " : "", HTML::relevant_settings_object(*this).creation_url, m_request_url);
// 11. If thiss synchronous flag is unset, then:
if (!m_synchronous) {