diff --git a/lib/srv/transport/transportv1/transport.go b/lib/srv/transport/transportv1/transport.go index c1ce020707ae6..cb274477e8311 100644 --- a/lib/srv/transport/transportv1/transport.go +++ b/lib/srv/transport/transportv1/transport.go @@ -24,8 +24,7 @@ import ( "io" "log/slog" "net" - "net/netip" - "reflect" + "net/netip "sync" "github.com/gravitational/trace" @@ -44,6 +43,7 @@ import ( "github.com/gravitational/teleport/lib/services" "github.com/gravitational/teleport/lib/teleagent" "github.com/gravitational/teleport/lib/utils" + logutils "github.com/gravitational/teleport/lib/utils/log" ) // Dialer is the interface that groups basic dialing methods. @@ -263,7 +263,7 @@ func (s *Service) ProxySSH(stream transportv1pb.TransportService_ProxySSHServer) case *transportv1pb.ProxySSHRequest_Agent: agentStream.incomingC <- frame.Agent.Payload default: - s.cfg.Logger.ErrorContext(ctx, "received unexpected ssh frame", "frame", reflect.TypeOf(frame)) + s.cfg.Logger.ErrorContext(ctx, "received unexpected ssh frame", "frame", logutils.TypeAttr(frame)) continue } }