@@ -217,7 +217,20 @@ where
217217 if in_bank. undelegating ( ) {
218218 // We expect the account to still be delegated, but with the delegation
219219 // program owner
220- debug ! ( "Received update for undelegating account {pubkey} delegated in bank={} delegated on chain={}" , in_bank. delegated( ) , account. delegated( ) ) ;
220+ debug ! ( "Received update for undelegating account {pubkey} \
221+ in_bank.delegated={}, \
222+ in_bank.owner={}, \
223+ in_bank.remote_slot={}, \
224+ chain.delegated={}, \
225+ chain.owner={}, \
226+ chain.remote_slot={}",
227+ in_bank. delegated( ) ,
228+ in_bank. owner( ) ,
229+ in_bank. remote_slot( ) ,
230+ account. delegated( ) ,
231+ account. owner( ) ,
232+ account. remote_slot( )
233+ ) ;
221234
222235 // This will only be true in the following case:
223236 // 1. a commit was triggered for the account
@@ -414,7 +427,7 @@ where
414427 if log:: log_enabled!( log:: Level :: Trace ) {
415428 trace ! ( "Delegation record found for {pubkey}: {delegation_record:?}" ) ;
416429 trace ! (
417- "Cloning delegated account: {pubkey} (remote slot {}, owner: {})" ,
430+ "Resolving delegated account: {pubkey} (remote slot {}, owner: {})" ,
418431 account. remote_slot( ) ,
419432 delegation_record. owner
420433 ) ;
@@ -1262,7 +1275,16 @@ where
12621275 }
12631276 RefreshDecision :: No => {
12641277 // Account is in bank and subscribed correctly - no fetch needed
1265- trace ! ( "Account {pubkey} found in bank in valid state, no fetch needed" ) ;
1278+ if log:: log_enabled!( log:: Level :: Trace ) {
1279+ let undelegating = account_in_bank. undelegating ( ) ;
1280+ let delegated = account_in_bank. delegated ( ) ;
1281+ let owner = account_in_bank. owner ( ) . to_string ( ) ;
1282+ trace ! ( "Account {pubkey} found in bank in valid state, no fetch needed \
1283+ undelegating = {undelegating}, \
1284+ delegated = {delegated}, \
1285+ owner={owner}"
1286+ ) ;
1287+ }
12661288 in_bank. push ( * pubkey) ;
12671289 }
12681290 }
0 commit comments