mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
优化日志,避免一些变量的逃逸
This commit is contained in:
@@ -55,7 +55,7 @@ func (cls *Cluster) readServiceConfig(filepath string) (map[string]interface{},
|
||||
serviceCfg :=v.(map[string]interface{})
|
||||
nodeId,ok := serviceCfg["NodeId"]
|
||||
if ok == false {
|
||||
log.Fatal("NodeService list not find nodeId field: %+v",nodeServiceList)
|
||||
log.SFatal("NodeService list not find nodeId field")
|
||||
}
|
||||
mapNodeService[int(nodeId.(float64))] = serviceCfg
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user