Explorar el Código

Don't log when fail to set deadlines due to tunnel I/O failure

Rod Hynes hace 7 años
padre
commit
49af699dde
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      psiphon/server/tunnelServer.go

+ 3 - 1
psiphon/server/tunnelServer.go

@@ -1068,7 +1068,9 @@ func (sshClient *sshClient) run(
 		nil)
 	if err != nil {
 		conn.Close()
-		log.WithContextFields(LogFields{"error": err}).Error("NewActivityMonitoredConn failed")
+		if !isExpectedTunnelIOError(err) {
+			log.WithContextFields(LogFields{"error": err}).Error("NewActivityMonitoredConn failed")
+		}
 		return
 	}
 	conn = activityConn