summaryrefslogtreecommitdiff
path: root/Userland/Services/WebServer
diff options
context:
space:
mode:
authorMax Wipfli <mail@maxwipfli.ch>2021-06-07 13:28:20 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-11 11:37:15 +0200
commiteb6adbabefb39477507dd5a3250aad272be09c25 (patch)
tree0036c2e036f6483d1a17ab532b2185bc578fee8e /Userland/Services/WebServer
parent6e6ff844d336b0d7b466156daea402e3eff09735 (diff)
downloadserenity-eb6adbabefb39477507dd5a3250aad272be09c25.zip
WebServer: Use outln() instead of printf()
Diffstat (limited to 'Userland/Services/WebServer')
-rw-r--r--Userland/Services/WebServer/Client.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Userland/Services/WebServer/Client.cpp b/Userland/Services/WebServer/Client.cpp
index 89594ce227..9e15f7bb9c 100644
--- a/Userland/Services/WebServer/Client.cpp
+++ b/Userland/Services/WebServer/Client.cpp
@@ -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());
}
}