MCPcopy Index your code
hub / github.com/coder/coder / LogPacket

Method LogPacket

tailnet/test/integration/integration.go:725–734  ·  view source on GitHub ↗
(path capture.Path, when time.Time, pkt []byte, _ packet.CaptureMeta)

Source from the content-addressed store, hash-verified

723}
724
725func (p packetLogger) LogPacket(path capture.Path, when time.Time, pkt []byte, _ packet.CaptureMeta) {
726 q := new(packet.Parsed)
727 q.Decode(pkt)
728 p.l.Info(context.Background(), "Packet",
729 slog.F("path", pathString(path)),
730 slog.F("when", when),
731 slog.F("decode", q.String()),
732 slog.F("len", len(pkt)),
733 )
734}
735
736func pathString(path capture.Path) string {
737 switch path {

Callers

nothing calls this directly

Calls 3

pathStringFunction · 0.85
InfoMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected