network-bridge: downgrade log level of benefit rep change (#3068)

* network-bridge: downgrade log level of benefit rep change

* remove it as we log it at higher level
This commit is contained in:
Andronik Ordian
2021-05-22 02:16:20 +02:00
committed by GitHub
parent e8652e73db
commit 44d02faa62
2 changed files with 17 additions and 4 deletions
@@ -55,6 +55,17 @@ impl UnifiedReputationChange {
}
}
/// Whether the reputation change is for good behavior.
pub const fn is_benefit(&self) -> bool {
match self {
Self::BenefitMajorFirst(_) |
Self::BenefitMajor(_) |
Self::BenefitMinorFirst(_) |
Self::BenefitMinor(_) => true,
_ => false,
}
}
/// Convert into a base reputation as used with substrate.
pub const fn into_base_rep(self) -> ReputationChange {
ReputationChange::new(