mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-09 03:41:29 +08:00
修复 recover 问题
This commit is contained in:
@@ -106,6 +106,9 @@ func logAudit(userName string, pl *sessdata.Payload) {
|
|||||||
if err := recover(); err != nil {
|
if err := recover(); err != nil {
|
||||||
base.Error("logAudit is panic: ", err, "\n", string(debug.Stack()), "\n", pl.Data)
|
base.Error("logAudit is panic: ", err, "\n", string(debug.Stack()), "\n", pl.Data)
|
||||||
}
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
|
defer func() {
|
||||||
putPayload(pl)
|
putPayload(pl)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user