problem: when an upstream is degrading it's unclear which one
This commit is contained in:
@@ -295,8 +295,11 @@ abstract class Multistream(
|
|||||||
.joinToString(",")
|
.joinToString(",")
|
||||||
val lag = upstreams.map { it.getLag() }
|
val lag = upstreams.map { it.getLag() }
|
||||||
.joinToString(", ")
|
.joinToString(", ")
|
||||||
|
val weak = upstreams
|
||||||
|
.filter { it.getStatus() != UpstreamAvailability.OK }
|
||||||
|
.joinToString(", ") { it.getId() }
|
||||||
|
|
||||||
log.info("State of ${chain.chainCode}: height=${height ?: '?'}, status=$statuses, lag=[$lag]")
|
log.info("State of ${chain.chainCode}: height=${height ?: '?'}, status=[$statuses], lag=[$lag], weak=[$weak]")
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user