1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

LibHTTP: Move more happy-path logging behind HTTPSJOB_DEBUG

This commit is contained in:
Nico Weber 2022-01-21 20:08:41 -05:00 committed by Linus Groh
parent 6d532649d4
commit 46ffc98ebc

View file

@ -45,10 +45,10 @@ void HttpsJob::start(NonnullRefPtr<Core::Socket> 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");