mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Don't log every connection by default
This commit is contained in:
parent
026054f73e
commit
3c36439665
@ -132,7 +132,7 @@ func (tcp *tcpProxySocket) ProxyLoop(service proxy.ServicePortName, myInfo *serv
|
|||||||
glog.Errorf("Accept failed: %v", err)
|
glog.Errorf("Accept failed: %v", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
glog.V(2).Infof("Accepted TCP connection from %v to %v", inConn.RemoteAddr(), inConn.LocalAddr())
|
glog.V(3).Infof("Accepted TCP connection from %v to %v", inConn.RemoteAddr(), inConn.LocalAddr())
|
||||||
outConn, err := tryConnect(service, inConn.(*net.TCPConn).RemoteAddr(), "tcp", proxier)
|
outConn, err := tryConnect(service, inConn.(*net.TCPConn).RemoteAddr(), "tcp", proxier)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Failed to connect to balancer: %v", err)
|
glog.Errorf("Failed to connect to balancer: %v", err)
|
||||||
@ -247,7 +247,7 @@ func (udp *udpProxySocket) getBackendConn(activeClients *clientCache, cliAddr ne
|
|||||||
if !found {
|
if !found {
|
||||||
// TODO: This could spin up a new goroutine to make the outbound connection,
|
// TODO: This could spin up a new goroutine to make the outbound connection,
|
||||||
// and keep accepting inbound traffic.
|
// and keep accepting inbound traffic.
|
||||||
glog.V(2).Infof("New UDP connection from %s", cliAddr)
|
glog.V(3).Infof("New UDP connection from %s", cliAddr)
|
||||||
var err error
|
var err error
|
||||||
svrConn, err = tryConnect(service, cliAddr, "udp", proxier)
|
svrConn, err = tryConnect(service, cliAddr, "udp", proxier)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user