v1.5.1 增强程序稳定性
This commit is contained in:
@@ -29,6 +29,12 @@ func init() {
|
||||
|
||||
events.On(events.EventStart, func() {
|
||||
go func() {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
remotelogs.Error("UPGRADE_MANAGER", fmt.Sprintf("goroutine panic: %v", r))
|
||||
}
|
||||
}()
|
||||
|
||||
rpcClient, err := rpc.SharedRPC()
|
||||
if err != nil {
|
||||
remotelogs.Error("UPGRADE_MANAGER", err.Error())
|
||||
|
||||
Reference in New Issue
Block a user