problem: confusing logging

This commit is contained in:
Igor Artamonov
2019-08-31 23:30:54 -04:00
parent 8b7888eb8c
commit aa3f66c059
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ open class DirectEthereumApi(
}
return result
.doOnError { t ->
log.warn("Upstream error: ${t.message} for ${method}")
log.warn("Upstream error: [${t.message}] for ${method}")
}
.map {
val resp = ResponseJson<Any, Int>()

View File

@@ -124,7 +124,7 @@ class EthereumGrpcTransport(
.map(asStatus)
.doFinally {
mapping.values.forEach { bi ->
bi.onError(RpcException(-32603, "RPC response not received"))
bi.onError(RpcException(-32603, "RPC response not received for ${bi.call.method}"))
}
}
.timeout(Duration.ofSeconds(15))