Skip to content

Commit

Permalink
fix: use logutils.TypeAttr
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy committed Dec 9, 2024
1 parent 0bcef1a commit 02fdcf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/srv/transport/transportv1/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"log/slog"
"net"
"net/netip"
"reflect"
"sync"

"github.com/gravitational/trace"
Expand All @@ -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.
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit 02fdcf2

Please sign in to comment.