protect spammy log with tracer

pull/16885/head
ncteisen 6 years ago
parent d0cb61eada
commit 3c41a169d0
  1. 3
      src/core/lib/iomgr/socket_utils_common_posix.cc

@ -307,7 +307,10 @@ grpc_error* grpc_set_socket_tcp_user_timeout(
} }
} }
#else #else
extern grpc_core::TraceFlag grpc_tcp_trace;
if (grpc_tcp_trace.enabled()) {
gpr_log(GPR_INFO, "TCP_USER_TIMEOUT not supported for this platform"); gpr_log(GPR_INFO, "TCP_USER_TIMEOUT not supported for this platform");
}
#endif /* GRPC_HAVE_TCP_USER_TIMEOUT */ #endif /* GRPC_HAVE_TCP_USER_TIMEOUT */
return GRPC_ERROR_NONE; return GRPC_ERROR_NONE;
} }

Loading…
Cancel
Save