mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-11 13:17:08 +00:00
Don't log so many stkaing events on genesis block (#8339)
* Don't log so many stkaing events on genesis block * Clean a few more warn and info logs * Update frame/staking/src/lib.rs * Update frame/staking/src/lib.rs
This commit is contained in:
1 parent
249f1503e6
commit
900bf2832a
2 files changed
+22
-14
No files matched your search
@@ -1019,12 +1019,16 @@ impl<T: Config> Pallet<T> {
|
||||
)
|
||||
.map(|(supports, compute)| {
|
||||
Self::deposit_event(Event::ElectionFinalized(Some(compute)));
|
||||
log!(info, "Finalized election round with compute {:?}.", compute);
|
||||
if Self::round() != 1 {
|
||||
log!(info, "Finalized election round with compute {:?}.", compute);
|
||||
}
|
||||
supports
|
||||
})
|
||||
.map_err(|err| {
|
||||
Self::deposit_event(Event::ElectionFinalized(None));
|
||||
log!(warn, "Failed to finalize election round. reason {:?}", err);
|
||||
if Self::round() != 1 {
|
||||
log!(warn, "Failed to finalize election round. reason {:?}", err);
|
||||
}
|
||||
err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user