mirror of https://github.com/bjdgyc/anylink.git
修复 recover 问题
This commit is contained in:
parent
740fcf64e9
commit
39fa986d55
|
@ -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)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue