mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +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
|
@ -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