mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
LibHTTP: Move more happy-path logging behind CHTTPJOB_DEBUG
This commit is contained in:
parent
46ffc98ebc
commit
a9c80ba33c
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue