diff options
author | Craig Tiller <ctiller@google.com> | 2015-09-16 10:58:41 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-09-16 10:58:41 -0700 |
commit | 6728038086ca83bc161ea5f5ca01edd4a6eb2c19 (patch) | |
tree | 615d60725f02cae4ea067b935dc39dbc3e45d7a7 /src/core/iomgr | |
parent | 5e53ddb3c59d824e042280480e1978b0a58f8675 (diff) |
Add server trace line
Diffstat (limited to 'src/core/iomgr')
-rw-r--r-- | src/core/iomgr/tcp_server_posix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/iomgr/tcp_server_posix.c b/src/core/iomgr/tcp_server_posix.c index bcbd0afe6b..a3cd3bbda2 100644 --- a/src/core/iomgr/tcp_server_posix.c +++ b/src/core/iomgr/tcp_server_posix.c @@ -339,6 +339,10 @@ static void on_read(void *arg, int success) { addr_str = grpc_sockaddr_to_uri((struct sockaddr *)&addr); gpr_asprintf(&name, "tcp-server-connection:%s", addr_str); + if (grpc_tcp_trace) { + gpr_log(GPR_DEBUG, "SERVER_CONNECT: incoming connection: %s", addr_str); + } + fdobj = grpc_fd_create(fd, name); /* TODO(ctiller): revise this when we have server-side sharding of channels -- we certainly should not be automatically adding every |