Skip to content

Commit

Permalink
Move energy budget reporting to log::trace! (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
kulakowski authored Aug 8, 2023
1 parent 45621c8 commit 9b7f1ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/standalone/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ impl spacetimedb_client_api::ControlNodeDelegate for StandaloneEnv {
async fn withdraw_energy(&self, identity: &Identity, amount: EnergyQuanta) -> spacetimedb::control_db::Result<()> {
let energy_balance = self.control_db.get_energy_balance(identity)?;
let energy_balance = energy_balance.unwrap_or(EnergyQuanta(0));
println!("Withdrawing {} energy from {}", amount.0, identity);
println!("Old balance: {}", energy_balance.0);
log::trace!("Withdrawing {} energy from {}", amount.0, identity);
log::trace!("Old balance: {}", energy_balance.0);
let new_balance = energy_balance - amount;
self.control_db
.set_energy_balance(*identity, new_balance.as_quanta())
Expand Down

0 comments on commit 9b7f1ad

Please sign in to comment.