From 808393c537f09804c9834b022c91c5d39c3bd7f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Wed, 8 Apr 2015 19:51:57 +0200 Subject: WS: only display the "connecting" status on -v --- json-rpc-shell.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'json-rpc-shell.c') diff --git a/json-rpc-shell.c b/json-rpc-shell.c index de42923..473560c 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -962,9 +962,12 @@ backend_ws_establish_connection (struct app_context *ctx, else real_host = buf; - char *address = format_host_port_pair (real_host, port); - print_status ("connecting to %s...", address); - free (address); + if (ctx->verbose) + { + char *address = format_host_port_pair (real_host, port); + print_status ("connecting to %s...", address); + free (address); + } if (!connect (sockfd, gai_iter->ai_addr, gai_iter->ai_addrlen)) break; -- cgit v1.2.3