修复 recover 问题

This commit is contained in:
bjdgyc 2024-12-03 15:47:29 +08:00
parent 740fcf64e9
commit 39fa986d55
1 changed files with 3 additions and 0 deletions

View File

@ -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)
}()