diff --git a/lib/srv/transport/transportv1/transport.go b/lib/srv/transport/transportv1/transport.go index c1ce020707ae6..820626ecfd211 100644 --- a/lib/srv/transport/transportv1/transport.go +++ b/lib/srv/transport/transportv1/transport.go @@ -25,7 +25,6 @@ import ( "log/slog" "net" "net/netip" - "reflect" "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 } }