aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-03-25 11:12:43 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-03-29 17:30:14 -0700
commitb242ffa2c7fd863f8d120e324c4e0d7b96fb1719 (patch)
treeff1fe717426dab39bb5659ca09acdebbf3692aba /src/core
parent508e89f4c9e80b62836391e7bacab7aa62df58ca (diff)
better message for on_connect error
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lib/iomgr/tcp_client_windows.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/tcp_client_windows.c b/src/core/lib/iomgr/tcp_client_windows.c
index 86b8d58975..b88c97d00e 100644
--- a/src/core/lib/iomgr/tcp_client_windows.c
+++ b/src/core/lib/iomgr/tcp_client_windows.c
@@ -103,7 +103,8 @@ static void on_connect(grpc_exec_ctx *exec_ctx, void *acp, bool from_iocp) {
GPR_ASSERT(transfered_bytes == 0);
if (!wsa_success) {
char *utf8_message = gpr_format_message(WSAGetLastError());
- gpr_log(GPR_ERROR, "on_connect error: %s", utf8_message);
+ gpr_log(GPR_ERROR, "on_connect error connecting to '%s': %s",
+ ac->addr_name, utf8_message);
gpr_free(utf8_message);
} else {
*ep = grpc_tcp_create(ac->socket, ac->addr_name);