mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
LibWeb: Hide XHR send debug messages behind SPAM_DEBUG
This commit is contained in:
parent
04670c7a06
commit
9ab312e001
Notes:
sideshowbarker
2024-07-17 12:02:22 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/9ab312e001 Pull-request: https://github.com/SerenityOS/serenity/pull/22214
|
@ -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 this’s 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 this’s synchronous flag is unset, then:
|
||||
if (!m_synchronous) {
|
||||
|
|
Loading…
Reference in a new issue