From a9c80ba33cac9fde56cafa5836c2fced054e9b6a Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 21 Jan 2022 20:09:10 -0500 Subject: [PATCH] LibHTTP: Move more happy-path logging behind CHTTPJOB_DEBUG --- Userland/Libraries/LibHTTP/HttpJob.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibHTTP/HttpJob.cpp b/Userland/Libraries/LibHTTP/HttpJob.cpp index dd3cb69584..20d4a60d24 100644 --- a/Userland/Libraries/LibHTTP/HttpJob.cpp +++ b/Userland/Libraries/LibHTTP/HttpJob.cpp @@ -24,13 +24,13 @@ void HttpJob::start(NonnullRefPtr socket) }; m_socket->set_idle(false); if (m_socket->is_connected()) { - dbgln("Reusing previous connection for {}", url()); + dbgln_if(CHTTPJOB_DEBUG, "Reusing previous connection for {}", url()); deferred_invoke([this] { dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_connected callback"); on_socket_connected(); }); } else { - dbgln("Creating new connection for {}", url()); + dbgln_if(CHTTPJOB_DEBUG, "Creating new connection for {}", url()); m_socket->on_connected = [this] { dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_connected callback"); on_socket_connected();