From 39fa986d55745107eec47feb0ce72a8be6747d4c Mon Sep 17 00:00:00 2001 From: bjdgyc Date: Tue, 3 Dec 2024 15:47:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20recover=20=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/handler/payload_access_audit.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/handler/payload_access_audit.go b/server/handler/payload_access_audit.go index d3d91b76..5e58cac3 100644 --- a/server/handler/payload_access_audit.go +++ b/server/handler/payload_access_audit.go @@ -106,6 +106,9 @@ func logAudit(userName string, pl *sessdata.Payload) { if err := recover(); err != nil { base.Error("logAudit is panic: ", err, "\n", string(debug.Stack()), "\n", pl.Data) } + }() + + defer func() { putPayload(pl) }()