From b63ecd0abe329a65e2a7e919d6a4996c0ee2e0de Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sat, 29 Apr 2017 10:05:25 +0800 Subject: [PATCH] Remove the duplicated "listening on ..." log Already logged by libwebsockets --- src/server.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/server.c b/src/server.c index 50838a3..d2dccfd 100644 --- a/src/server.c +++ b/src/server.c @@ -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 -- 2.43.4