(path capture.Path, when time.Time, pkt []byte, _ packet.CaptureMeta)
| 723 | } |
| 724 | |
| 725 | func (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 | |
| 736 | func pathString(path capture.Path) string { |
| 737 | switch path { |
nothing calls this directly
no test coverage detected