mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibWeb: Hide XHR send debug messages behind SPAM_DEBUG
This commit is contained in:
parent
04670c7a06
commit
9ab312e001
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue