cmd/swarm/swarm-smoke: better error logs for rpc debug calls

This commit is contained in:
Anton Evangelatov 2019-03-12 11:51:04 +01:00
parent 273ec941fb
commit fb6d9787cc

View file

@ -94,14 +94,14 @@ func trackChunks(testData []byte) error {
rpcClient, err := rpc.Dial(httpHost) rpcClient, err := rpc.Dial(httpHost)
if err != nil { if err != nil {
log.Error("Error dialing host", "err", err) log.Error("error dialing host", "err", err, "host", httpHost)
continue continue
} }
var hasInfo []api.HasInfo var hasInfo []api.HasInfo
err = rpcClient.Call(&hasInfo, "bzz_has", addrs) err = rpcClient.Call(&hasInfo, "bzz_has", addrs)
if err != nil { if err != nil {
log.Error("Error calling host", "err", err) log.Error("error calling rpc client", "err", err, "host", httpHost)
continue continue
} }