File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -589,6 +589,8 @@ pub mod rpc {
589
589
with_logger : WithLogger ,
590
590
config : Config | {
591
591
ws. on_upgrade ( move |conn| async move {
592
+ info ! ( with_logger. logger, "websocket user connected" ) ;
593
+
592
594
Connection :: new (
593
595
conn,
594
596
adapter_tx,
Original file line number Diff line number Diff line change @@ -592,6 +592,8 @@ mod transaction_monitor {
592
592
}
593
593
594
594
fn add_transaction ( & mut self , signature : Signature ) {
595
+ debug ! ( self . logger, "monitoring new transaction" ; "signature" => signature. to_string( ) ) ;
596
+
595
597
// Add the new transaction to the list
596
598
self . sent_transactions . push_back ( signature) ;
597
599
@@ -622,7 +624,7 @@ mod transaction_monitor {
622
624
. count ( ) ;
623
625
let percentage_confirmed =
624
626
( ( confirmed as f64 ) / ( self . sent_transactions . len ( ) as f64 ) ) * 100.0 ;
625
- info ! ( self . logger, "monitoring transaction hit rate" ; "percentage confirmed" => percentage_confirmed) ;
627
+ info ! ( self . logger, "monitoring transaction hit rate" ; "percentage confirmed" => format! ( "{:.}" , percentage_confirmed) ) ;
626
628
627
629
Ok ( ( ) )
628
630
}
Original file line number Diff line number Diff line change @@ -531,6 +531,8 @@ mod subscriber {
531
531
pub async fn start_shadow (
532
532
& self ,
533
533
) -> Result < broadcast:: Receiver < ( Pubkey , solana_sdk:: account:: Account ) > > {
534
+ debug ! ( self . logger, "subscribed to account updates" ; "account" => self . account_key. to_string( ) ) ;
535
+
534
536
let shadow = BlockchainShadow :: new_for_program (
535
537
& self . account_key ,
536
538
SyncOptions {
You can’t perform that action at this time.
0 commit comments