mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03:00
LibHTTP: Move more happy-path logging behind CHTTPJOB_DEBUG
This commit is contained in:
parent
46ffc98ebc
commit
a9c80ba33c
Notes:
sideshowbarker
2024-07-17 20:27:48 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/a9c80ba33ca Pull-request: https://github.com/SerenityOS/serenity/pull/12061 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/linusg ✅
@ -24,13 +24,13 @@ void HttpJob::start(NonnullRefPtr<Core::Socket> 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();
|
||||
|
Loading…
Reference in New Issue
Block a user