summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;