From b90e939442948584dba72a515134595799d40fe8 Mon Sep 17 00:00:00 2001 From: Jordan Oroshiba Date: Tue, 2 Apr 2024 17:20:14 -0700 Subject: [PATCH] chore(sequencer): logging as human readable for state ext --- crates/astria-sequencer/src/accounts/state_ext.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/astria-sequencer/src/accounts/state_ext.rs b/crates/astria-sequencer/src/accounts/state_ext.rs index d340c0dcc3..1edab99cef 100644 --- a/crates/astria-sequencer/src/accounts/state_ext.rs +++ b/crates/astria-sequencer/src/accounts/state_ext.rs @@ -51,7 +51,7 @@ fn nonce_storage_key(address: Address) -> String { #[async_trait] pub(crate) trait StateReadExt: StateRead { - #[instrument(skip(self))] + #[instrument(skip_all, fields(address=%address))] async fn get_account_balances(&self, address: Address) -> Result> { use crate::asset::state_ext::StateReadExt as _; @@ -101,7 +101,7 @@ pub(crate) trait StateReadExt: StateRead { Ok(balances) } - #[instrument(skip(self))] + #[instrument(skip_all, fields(address=%address, asset_id=%asset))] async fn get_account_balance(&self, address: Address, asset: asset::Id) -> Result { let Some(bytes) = self .get_raw(&balance_storage_key(address, asset)) @@ -115,7 +115,7 @@ pub(crate) trait StateReadExt: StateRead { Ok(balance) } - #[instrument(skip(self))] + #[instrument(skip_all, fields(address=%address))] async fn get_account_nonce(&self, address: Address) -> Result { let bytes = self .get_raw(&nonce_storage_key(address))