better logging
This commit is contained in:
@@ -161,7 +161,7 @@ class QuorumRpcReader(
|
|||||||
is JsonRpcException -> err
|
is JsonRpcException -> err
|
||||||
else -> JsonRpcException(
|
else -> JsonRpcException(
|
||||||
JsonRpcResponse.NumberId(key.id),
|
JsonRpcResponse.NumberId(key.id),
|
||||||
JsonRpcError(-32603, "Unhandled internal error: ${err.javaClass}")
|
JsonRpcError(-32603, "Unhandled internal error: ${err.javaClass}: ${err.message}")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
quorum.record(cleanErr, null, api)
|
quorum.record(cleanErr, null, api)
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ class GrpcHead(
|
|||||||
.setTypeValue(chain.id)
|
.setTypeValue(chain.id)
|
||||||
.build()
|
.build()
|
||||||
return client.subscribeHead(chainRef)
|
return client.subscribeHead(chainRef)
|
||||||
|
.doOnError { log.error("subscribeHead err: ${it.message}", it) }
|
||||||
// simple retry on failure, if eventually failed then it supposed to resubscribe later from outer method
|
// simple retry on failure, if eventually failed then it supposed to resubscribe later from outer method
|
||||||
.retryWhen(Retry.backoff(4, Duration.ofSeconds(1)))
|
.retryWhen(Retry.backoff(4, Duration.ofSeconds(1)))
|
||||||
.onErrorContinue { err, _ ->
|
.onErrorContinue { err, _ ->
|
||||||
|
|||||||
Reference in New Issue
Block a user