Skip to content

Commit 46ffc98

Browse files
nicolinusg
authored andcommitted
LibHTTP: Move more happy-path logging behind HTTPSJOB_DEBUG
1 parent 6d53264 commit 46ffc98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Userland/Libraries/LibHTTP/HttpsJob.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ void HttpsJob::start(NonnullRefPtr<Core::Socket> socket)
4545
};
4646
m_socket->set_idle(false);
4747
if (m_socket->is_established()) {
48-
dbgln("Reusing previous connection for {}", url());
48+
dbgln_if(HTTPSJOB_DEBUG, "Reusing previous connection for {}", url());
4949
deferred_invoke([this] { on_socket_connected(); });
5050
} else {
51-
dbgln("Creating a new connection for {}", url());
51+
dbgln_if(HTTPSJOB_DEBUG, "Creating a new connection for {}", url());
5252
m_socket->set_root_certificates(m_override_ca_certificates ? *m_override_ca_certificates : DefaultRootCACertificates::the().certificates());
5353
m_socket->on_tls_connected = [this] {
5454
dbgln_if(HTTPSJOB_DEBUG, "HttpsJob: on_connected callback");

0 commit comments

Comments
 (0)