summaryrefslogtreecommitdiff
path: root/Services/WebServer
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-10-04 15:35:43 +0200
committerAndreas Kling <kling@serenityos.org>2020-10-04 17:04:55 +0200
commitd5ffb51a8328f5274a6a338163e1d4fb7f6ac210 (patch)
treeb6b20ee1be48625260ce235492964a4c6ada07b7 /Services/WebServer
parent4237089a21a86a2610929a68dafa72c0f4e20ff9 (diff)
downloadserenity-d5ffb51a8328f5274a6a338163e1d4fb7f6ac210.zip
AK: Don't add newline for outf/dbgf/warnf.
In the future all (normal) output should be written by any of the following functions: out (currently called new_out) outln dbg (currently called new_dbg) dbgln warn (currently called new_warn) warnln However, there are still a ton of uses of the old out/warn/dbg in the code base so the new functions are called new_out/new_warn/new_dbg. I am going to rename them as soon as all the other usages are gone (this might take a while.) I also added raw_out/raw_dbg/raw_warn which don't do any escaping, this should be useful if no formatting is required and if the input contains tons of curly braces. (I am not entirely sure if this function will stay, but I am adding it for now.)
Diffstat (limited to 'Services/WebServer')
-rw-r--r--Services/WebServer/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Services/WebServer/main.cpp b/Services/WebServer/main.cpp
index 22e28f9840..8c326c84a8 100644
--- a/Services/WebServer/main.cpp
+++ b/Services/WebServer/main.cpp
@@ -74,11 +74,11 @@ int main(int argc, char** argv)
};
if (!server->listen({}, port)) {
- warnf("Failed to listen on 0.0.0.0:{}", port);
+ warnln("Failed to listen on 0.0.0.0:{}", port);
return 1;
}
- outf("Listening on 0.0.0.0:{}", port);
+ outln("Listening on 0.0.0.0:{}", port);
if (unveil("/res/icons", "r") < 0) {
perror("unveil");