Warn on chain selection error. (#10587)

At least for Polkadot, this should not result in spam and a warning will
very likely indicate some serious issue.
This commit is contained in:
Robert Klotzner
2022-01-05 17:02:32 +01:00
committed by GitHub
parent 3dd32d5255
commit 223d929f86
@@ -1224,7 +1224,7 @@ where
.or_else(|| Some((target_header.hash(), *target_header.number()))) .or_else(|| Some((target_header.hash(), *target_header.number())))
}, },
Err(e) => { Err(e) => {
debug!(target: "afg", "Encountered error finding best chain containing {:?}: {:?}", block, e); warn!(target: "afg", "Encountered error finding best chain containing {:?}: {:?}", block, e);
None None
}, },
}; };