From: Shuanglei Tao Date: Sat, 29 Apr 2017 02:05:25 +0000 (+0800) Subject: Remove the duplicated "listening on ..." log X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=b63ecd0abe329a65e2a7e919d6a4996c0ee2e0de;p=ttyd.git Remove the duplicated "listening on ..." log Already logged by libwebsockets --- 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