mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.Everything: The modifications in this commit were automatically made using the following command: find . -name '*.cpp' -exec sed -i -E 's/dbg\(\) << ("[^"{]*");/dbgln\(\1\);/' {} \;
This commit is contained in:
parent
40b8e21115
commit
938e5c7719
95 changed files with 331 additions and 331 deletions
|
@ -40,7 +40,7 @@ void HttpJob::start()
|
|||
m_socket = Core::TCPSocket::construct(this);
|
||||
m_socket->on_connected = [this] {
|
||||
#ifdef CHTTPJOB_DEBUG
|
||||
dbg() << "HttpJob: on_connected callback";
|
||||
dbgln("HttpJob: on_connected callback");
|
||||
#endif
|
||||
on_socket_connected();
|
||||
};
|
||||
|
|
|
@ -43,7 +43,7 @@ void HttpsJob::start()
|
|||
m_socket->set_root_certificates(m_override_ca_certificates ? *m_override_ca_certificates : DefaultRootCACertificates::the().certificates());
|
||||
m_socket->on_tls_connected = [this] {
|
||||
#ifdef HTTPSJOB_DEBUG
|
||||
dbg() << "HttpsJob: on_connected callback";
|
||||
dbgln("HttpsJob: on_connected callback");
|
||||
#endif
|
||||
on_socket_connected();
|
||||
};
|
||||
|
@ -90,7 +90,7 @@ void HttpsJob::shutdown()
|
|||
void HttpsJob::set_certificate(String certificate, String private_key)
|
||||
{
|
||||
if (!m_socket->add_client_key(certificate.bytes(), private_key.bytes())) {
|
||||
dbg() << "LibHTTP: Failed to set a client certificate";
|
||||
dbgln("LibHTTP: Failed to set a client certificate");
|
||||
// FIXME: Do something about this failure
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
|
|
@ -43,16 +43,16 @@ static ByteBuffer handle_content_encoding(const ByteBuffer& buf, const String& c
|
|||
|
||||
if (content_encoding == "gzip") {
|
||||
if (!Core::Gzip::is_compressed(buf)) {
|
||||
dbg() << "Job::handle_content_encoding: buf is not gzip compressed!";
|
||||
dbgln("Job::handle_content_encoding: buf is not gzip compressed!");
|
||||
}
|
||||
|
||||
#ifdef JOB_DEBUG
|
||||
dbg() << "Job::handle_content_encoding: buf is gzip compressed!";
|
||||
dbgln("Job::handle_content_encoding: buf is gzip compressed!");
|
||||
#endif
|
||||
|
||||
auto uncompressed = Core::Gzip::decompress(buf);
|
||||
if (!uncompressed.has_value()) {
|
||||
dbg() << "Job::handle_content_encoding: Gzip::decompress() failed. Returning original buffer.";
|
||||
dbgln("Job::handle_content_encoding: Gzip::decompress() failed. Returning original buffer.");
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ void Job::on_socket_connected()
|
|||
m_sent_data = true;
|
||||
auto raw_request = m_request.to_raw_request();
|
||||
#ifdef JOB_DEBUG
|
||||
dbg() << "Job: raw_request:";
|
||||
dbgln("Job: raw_request:");
|
||||
dbg() << String::copy(raw_request).characters();
|
||||
#endif
|
||||
bool success = write(raw_request);
|
||||
|
@ -234,7 +234,7 @@ void Job::on_socket_connected()
|
|||
dbg() << "Job: Received a chunk with size _" << size_data << "_";
|
||||
#endif
|
||||
if (size_lines.size() == 0) {
|
||||
dbg() << "Job: Reached end of stream";
|
||||
dbgln("Job: Reached end of stream");
|
||||
finish_up();
|
||||
return IterationDecision::Break;
|
||||
} else {
|
||||
|
@ -355,7 +355,7 @@ void Job::on_socket_connected()
|
|||
|
||||
if (!is_established()) {
|
||||
#ifdef JOB_DEBUG
|
||||
dbg() << "Connection appears to have closed, finishing up";
|
||||
dbgln("Connection appears to have closed, finishing up");
|
||||
#endif
|
||||
finish_up();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue