mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
优化日志输出
This commit is contained in:
@@ -341,11 +341,11 @@ func (handler *RpcHandler) goRpc(processor IRpcProcessor,bCast bool,nodeId int,s
|
||||
var pClientList [maxClusterNode]*Client
|
||||
err,count := handler.funcRpcClient(nodeId,serviceMethod,pClientList[:])
|
||||
if count==0||err != nil {
|
||||
log.Error("Call serviceMethod is error:%+v!",err)
|
||||
log.Error("Call %s is error:%+v!",serviceMethod,err)
|
||||
return err
|
||||
}
|
||||
if count > 1 && bCast == false{
|
||||
log.Error("Cannot call more then 1 node!")
|
||||
log.Error("Cannot call %s more then 1 node!",serviceMethod)
|
||||
return fmt.Errorf("Cannot call more then 1 node!")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user