Skip to content

Commit

Permalink
ingress/tcp: add additional error logging on failed (#7208)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt1360 authored Jun 29, 2021
1 parent 4bdb553 commit 197a26a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/ingress/controller/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func (p *TCPProxy) Handle(conn net.Conn) {
hostPort := net.JoinHostPort(proxy.IP, fmt.Sprintf("%v", proxy.Port))
clientConn, err := net.Dial("tcp", hostPort)
if err != nil {
klog.V(4).ErrorS(err, "error dialing proxy", "ip", proxy.IP, "port", proxy.Port, "hostname", proxy.Hostname)
return
}
defer clientConn.Close()
Expand Down

0 comments on commit 197a26a

Please sign in to comment.