mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 23:48:03 +08:00
修复 recover 问题
This commit is contained in:
@@ -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)
|
||||
}()
|
||||
|
||||
|
Reference in New Issue
Block a user