1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:27:44 +00:00

WebServer: Use outln() instead of printf()

This commit is contained in:
Max Wipfli 2021-06-07 13:28:20 +02:00 committed by Andreas Kling
parent 6e6ff844d3
commit eb6adbabef

View file

@ -265,11 +265,7 @@ void Client::send_error_response(unsigned code, StringView const& message, HTTP:
void Client::log_response(unsigned code, HTTP::HttpRequest const& request)
{
printf("%s :: %03u :: %s %s\n",
Core::DateTime::now().to_string().characters(),
code,
request.method_name().characters(),
request.resource().characters());
outln("{} :: {:03d} :: {} {}", Core::DateTime::now().to_string(), code, request.method_name(), request.resource());
}
}