mirror of
https://github.com/lwch/natpass
synced 2025-10-05 21:36:58 +08:00
客户端增加recover
This commit is contained in:
9
code/utils/recover.go
Normal file
9
code/utils/recover.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package utils
|
||||
|
||||
import "github.com/lwch/logging"
|
||||
|
||||
func Recover(name string) {
|
||||
if err := recover(); err != nil {
|
||||
logging.Error("%s: %v", name, err)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user