Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
fix build
  • Loading branch information
shawntabrizi committed Mar 3, 2021
commit 73604cf551ee1621ac2ac45865b1a276e3fe85ee
10 changes: 8 additions & 2 deletions frame/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,10 @@ impl<T: Config> Module<T> {
if let Some(mut account) = maybe_account.take() {
if account.sufficients == 0 {
// Logic error - cannot decrement beyond zero.
debug::print!("Logic error: Unexpected underflow in reducing sufficients");
log::error!(
target: "runtime::system",
"Logic error: Unexpected underflow in reducing sufficients",
);
}
match (account.sufficients, account.providers) {
(0, 0) | (1, 0) => {
Expand All @@ -1143,7 +1146,10 @@ impl<T: Config> Module<T> {
}
}
} else {
debug::print!("Logic error: Account already dead when reducing provider");
log::error!(
target: "runtime::system",
"Logic error: Account already dead when reducing provider",
);
DecRefStatus::Reaped
}
})
Expand Down