Remove the duplicated "listening on ..." log

Already logged by libwebsockets
This commit is contained in:
Shuanglei Tao
2017-04-29 10:05:25 +08:00
parent f6361caa50
commit b63ecd0abe

View 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