mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 17:21:08 +00:00
more resilient subsystems (#1908)
* backing: extract log target * bitfield-signing: extract log target * utils: fix a typo * provisioner: extract log target * candidate selection: remove unused error variant * bitfield-distribution: change the return type of run * pov-distribution: extract log target * collator-protocol: simplify runtime request * collation-generation: do not exit early on error * collation-generation: do not exit on double init * collator-protocol: do not exit on errors and rename LOG_TARGET * collator-protocol: a workaround for ununused imports warning * Update node/network/bitfield-distribution/src/lib.rs * collation-generation: elevate warn! to error! * collator-protocol: fix imports * post merge fix * fix compilation
This commit is contained in:
@@ -52,6 +52,8 @@ const BENEFIT_FRESH_POV: Rep = Rep::new(25, "Peer supplied us with an awaited Po
|
||||
const BENEFIT_LATE_POV: Rep = Rep::new(10, "Peer supplied us with an awaited PoV, \
|
||||
but was not the first to do so");
|
||||
|
||||
const LOG_TARGET: &str = "pov_distribution";
|
||||
|
||||
/// The PoV Distribution Subsystem.
|
||||
pub struct PoVDistribution {
|
||||
// Prometheus metrics
|
||||
@@ -133,7 +135,8 @@ async fn handle_signal(
|
||||
let n_validators = match vals_rx.await? {
|
||||
Ok(v) => v.len(),
|
||||
Err(e) => {
|
||||
log::warn!(target: "pov_distribution",
|
||||
log::warn!(
|
||||
target: LOG_TARGET,
|
||||
"Error fetching validators from runtime API for active leaf: {:?}",
|
||||
e
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user