add handler recorder

This commit is contained in:
ginuerzh committed 2024-09-14 23:21:25 +08:00
1 parent e7581f0a9e
commit 69455ace9d
39 files changed
+1256 -271

No files matched your search

+1
View File
@@ -60,6 +60,7 @@ func (h *http3Handler) Handle(ctx context.Context, conn net.Conn, opts ...handle
log := h.options.Logger.WithFields(map[string]any{
"remote": conn.RemoteAddr().String(),
"local": conn.LocalAddr().String(),
"sid": ctxvalue.SidFromContext(ctx),
})
log.Infof("%s <> %s", conn.RemoteAddr(), conn.LocalAddr())
defer func() {