aboutsummaryrefslogtreecommitdiff
path: root/json-rpc-shell.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-08 19:51:57 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-08 19:51:57 +0200
commit808393c537f09804c9834b022c91c5d39c3bd7f7 (patch)
tree1a9b124ded5abdfaae26786d292ec8000f3ac766 /json-rpc-shell.c
parentfd4177157e865fe025ebbbe63a6a3d179f348cd4 (diff)
downloadjson-rpc-shell-808393c537f09804c9834b022c91c5d39c3bd7f7.tar.gz
json-rpc-shell-808393c537f09804c9834b022c91c5d39c3bd7f7.tar.xz
json-rpc-shell-808393c537f09804c9834b022c91c5d39c3bd7f7.zip
WS: only display the "connecting" status on -v
Diffstat (limited to 'json-rpc-shell.c')
-rw-r--r--json-rpc-shell.c9
1 files changed, 6 insertions, 3 deletions
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;