From 3f0c17f541013ed10697bb528c28233a7d8ed639 Mon Sep 17 00:00:00 2001 From: Tim Ross Date: Mon, 9 Dec 2024 13:04:43 -0500 Subject: [PATCH] fix: use logutils.TypeAttr --- lib/srv/transport/transportv1/transport.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } }