]> prime8.dev >> repos - ttyd.git/commitdiff
Remove the duplicated "listening on ..." log
authorShuanglei Tao <tsl0922@gmail.com>
Sat, 29 Apr 2017 02:05:25 +0000 (10:05 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Sat, 29 Apr 2017 02:06:56 +0000 (10:06 +0800)
Already logged by libwebsockets

src/server.c

index 50838a3d7e7c78d6fba71ee1b01e73c10626ba5a..d2dccfddf89103b6f7428802b135c600725da233 100644 (file)
@@ -439,15 +439,11 @@ main(int argc, char **argv) {
         lwsl_err("libwebsockets init failed\n");
         return 1;
     }
-    if (server->socket_path != NULL) {
-        lwsl_notice("listening on socket %s\n", server->socket_path);
-    } else {
-        lwsl_notice("listening on port %d\n", info.port);
-        if (browser) {
-            char url[30];
-            sprintf(url, "%s://localhost:%d", ssl ? "https" : "http", info.port);
-            open_uri(url);
-        }
+
+    if (browser) {
+        char url[30];
+        sprintf(url, "%s://localhost:%d", ssl ? "https" : "http", info.port);
+        open_uri(url);
     }
 
     // libwebsockets main loop