diff options
-rw-r--r-- | AK/Debug.h.in | 8 | ||||
-rw-r--r-- | Meta/CMake/all_the_debug_macros.cmake | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibHTTP/HttpJob.cpp | 10 |
3 files changed, 10 insertions, 10 deletions
diff --git a/AK/Debug.h.in b/AK/Debug.h.in index 1ffc6294ec..0f0e22479f 100644 --- a/AK/Debug.h.in +++ b/AK/Debug.h.in @@ -26,10 +26,6 @@ #cmakedefine01 CALLBACK_MACHINE_DEBUG #endif -#ifndef CHTTPJOB_DEBUG -#cmakedefine01 CHTTPJOB_DEBUG -#endif - #ifndef CNETWORKJOB_DEBUG #cmakedefine01 CNETWORKJOB_DEBUG #endif @@ -202,6 +198,10 @@ #cmakedefine01 HTML_SCRIPT_DEBUG #endif +#ifndef HTTPJOB_DEBUG +#cmakedefine01 HTTPJOB_DEBUG +#endif + #ifndef HTTPSJOB_DEBUG #cmakedefine01 HTTPSJOB_DEBUG #endif diff --git a/Meta/CMake/all_the_debug_macros.cmake b/Meta/CMake/all_the_debug_macros.cmake index f3c3ca97df..f3589c4c22 100644 --- a/Meta/CMake/all_the_debug_macros.cmake +++ b/Meta/CMake/all_the_debug_macros.cmake @@ -11,7 +11,6 @@ set(BMP_DEBUG ON) set(BXVGA_DEBUG ON) set(CACHE_DEBUG ON) set(CALLBACK_MACHINE_DEBUG ON) -set(CHTTPJOB_DEBUG ON) set(CNETWORKJOB_DEBUG ON) set(COMMIT_DEBUG ON) set(COMPOSE_DEBUG ON) @@ -76,6 +75,7 @@ set(HIGHLIGHT_FOCUSED_FRAME_DEBUG ON) set(HPET_COMPARATOR_DEBUG ON) set(HPET_DEBUG ON) set(HTML_SCRIPT_DEBUG ON) +set(HTTPJOB_DEBUG ON) set(HTTPSJOB_DEBUG ON) set(HUNKS_DEBUG ON) set(ICMP_DEBUG ON) diff --git a/Userland/Libraries/LibHTTP/HttpJob.cpp b/Userland/Libraries/LibHTTP/HttpJob.cpp index 20d4a60d24..26c084c846 100644 --- a/Userland/Libraries/LibHTTP/HttpJob.cpp +++ b/Userland/Libraries/LibHTTP/HttpJob.cpp @@ -17,22 +17,22 @@ void HttpJob::start(NonnullRefPtr<Core::Socket> socket) VERIFY(!m_socket); m_socket = move(socket); m_socket->on_error = [this] { - dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_error callback"); + dbgln_if(HTTPJOB_DEBUG, "HttpJob: on_error callback"); deferred_invoke([this] { did_fail(Core::NetworkJob::Error::ConnectionFailed); }); }; m_socket->set_idle(false); if (m_socket->is_connected()) { - dbgln_if(CHTTPJOB_DEBUG, "Reusing previous connection for {}", url()); + dbgln_if(HTTPJOB_DEBUG, "Reusing previous connection for {}", url()); deferred_invoke([this] { - dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_connected callback"); + dbgln_if(HTTPJOB_DEBUG, "HttpJob: on_connected callback"); on_socket_connected(); }); } else { - dbgln_if(CHTTPJOB_DEBUG, "Creating new connection for {}", url()); + dbgln_if(HTTPJOB_DEBUG, "Creating new connection for {}", url()); m_socket->on_connected = [this] { - dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_connected callback"); + dbgln_if(HTTPJOB_DEBUG, "HttpJob: on_connected callback"); on_socket_connected(); }; bool success = m_socket->connect(m_request.url().host(), m_request.url().port_or_default()); |