Skip to content

Commit

Permalink
修复 recover 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
bjdgyc committed Dec 3, 2024
1 parent 740fcf6 commit 39fa986
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/handler/payload_access_audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}()

Expand Down

0 comments on commit 39fa986

Please sign in to comment.