From 46ffc98ebcf7258c1e36751f65b13205e8728a5d Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 21 Jan 2022 20:08:41 -0500 Subject: LibHTTP: Move more happy-path logging behind HTTPSJOB_DEBUG --- Userland/Libraries/LibHTTP/HttpsJob.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries') diff --git a/Userland/Libraries/LibHTTP/HttpsJob.cpp b/Userland/Libraries/LibHTTP/HttpsJob.cpp index 3464527590..88a2137fc1 100644 --- a/Userland/Libraries/LibHTTP/HttpsJob.cpp +++ b/Userland/Libraries/LibHTTP/HttpsJob.cpp @@ -45,10 +45,10 @@ void HttpsJob::start(NonnullRefPtr socket) }; m_socket->set_idle(false); if (m_socket->is_established()) { - dbgln("Reusing previous connection for {}", url()); + dbgln_if(HTTPSJOB_DEBUG, "Reusing previous connection for {}", url()); deferred_invoke([this] { on_socket_connected(); }); } else { - dbgln("Creating a new connection for {}", url()); + dbgln_if(HTTPSJOB_DEBUG, "Creating a new connection for {}", url()); m_socket->set_root_certificates(m_override_ca_certificates ? *m_override_ca_certificates : DefaultRootCACertificates::the().certificates()); m_socket->on_tls_connected = [this] { dbgln_if(HTTPSJOB_DEBUG, "HttpsJob: on_connected callback"); -- cgit v1.2.3