@@ -34,7 +34,7 @@ pub fn attestation_signers(
3434 dispute_manager_rx,
3535 move |( allocation, dispute) | {
3636 let indexer_mnemonic = indexer_mnemonic. clone ( ) ;
37- modify_sigers (
37+ modify_signers (
3838 & indexer_mnemonic,
3939 chain_id,
4040 attestation_signers_map,
@@ -44,7 +44,7 @@ pub fn attestation_signers(
4444 } ,
4545 )
4646}
47- fn modify_sigers (
47+ fn modify_signers (
4848 indexer_mnemonic : & str ,
4949 chain_id : ChainId ,
5050 attestation_signers_map : & ' static Mutex < HashMap < Address , AttestationSigner > > ,
@@ -59,30 +59,34 @@ fn modify_sigers(
5959 for ( id, allocation) in allocations. iter ( ) {
6060 if !signers. contains_key ( id) {
6161 tracing:: debug!(
62- "Attempting to create attestation signer for allocation {}, deployment {}, createdAtEpoch {}" ,
63- allocation. id, allocation. subgraph_deployment. id, allocation. created_at_epoch
62+ allocation_id = ?allocation. id,
63+ deployment_id = ?allocation. subgraph_deployment. id,
64+ created_at_epoch = allocation. created_at_epoch,
65+ "Attempting to create attestation signer for allocation"
6466 ) ;
6567
6668 let signer =
6769 AttestationSigner :: new ( indexer_mnemonic, allocation, chain_id, * dispute_manager) ;
6870 match signer {
6971 Ok ( signer) => {
7072 tracing:: debug!(
71- "Successfully created attestation signer for allocation {}" ,
72- allocation. id
73+ allocation_id = ? allocation. id ,
74+ "Successfully created attestation signer for allocation"
7375 ) ;
7476 signers. insert ( * id, signer) ;
7577 }
7678 Err ( e) => {
7779 tracing:: warn!(
78- "Failed to establish signer for allocation {}, deployment {}, createdAtEpoch {}: {}" ,
79- allocation. id, allocation. subgraph_deployment. id,
80- allocation. created_at_epoch, e
80+ allocation_id = ?allocation. id,
81+ deployment_id = ?allocation. subgraph_deployment. id,
82+ created_at_epoch = allocation. created_at_epoch,
83+ error = %e,
84+ "Failed to establish signer for allocation"
8185 ) ;
8286 tracing:: debug!(
83- "Signer creation error details for allocation {}: {}" ,
84- allocation . id ,
85- e
87+ allocation_id = ? allocation. id ,
88+ error = %e ,
89+ "Signer creation error details"
8690 ) ;
8791 }
8892 }
0 commit comments