mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 21:12:26 +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: 9ab312e001
Pull-request: https://github.com/SerenityOS/serenity/pull/22214
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <AK/ByteBuffer.h>
|
#include <AK/ByteBuffer.h>
|
||||||
|
#include <AK/Debug.h>
|
||||||
#include <AK/GenericLexer.h>
|
#include <AK/GenericLexer.h>
|
||||||
#include <AK/QuickSort.h>
|
#include <AK/QuickSort.h>
|
||||||
#include <LibJS/Runtime/ArrayBuffer.h>
|
#include <LibJS/Runtime/ArrayBuffer.h>
|
||||||
|
@ -700,7 +701,7 @@ WebIDL::ExceptionOr<void> XMLHttpRequest::send(Optional<DocumentOrXMLHttpRequest
|
||||||
// 10. Set this’s send() flag.
|
// 10. Set this’s send() flag.
|
||||||
m_send = true;
|
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:
|
// 11. If this’s synchronous flag is unset, then:
|
||||||
if (!m_synchronous) {
|
if (!m_synchronous) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue