problem: when an upstream is degrading it's unclear which one

This commit is contained in:
Igor Artamonov
2021-10-20 20:34:35 -04:00
parent 94f7fbb9b8
commit a04c1f3e66

View File

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