优化日志输出

This commit is contained in:
boyce
2021-03-10 18:23:41 +08:00
parent 3758fc02e0
commit e8233a6840

View File

@@ -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!")
}