@@ -34,7 +34,7 @@ pub fn attestation_signers(
34
34
dispute_manager_rx,
35
35
move |( allocation, dispute) | {
36
36
let indexer_mnemonic = indexer_mnemonic. clone ( ) ;
37
- modify_sigers (
37
+ modify_signers (
38
38
& indexer_mnemonic,
39
39
chain_id,
40
40
attestation_signers_map,
@@ -44,7 +44,7 @@ pub fn attestation_signers(
44
44
} ,
45
45
)
46
46
}
47
- fn modify_sigers (
47
+ fn modify_signers (
48
48
indexer_mnemonic : & str ,
49
49
chain_id : ChainId ,
50
50
attestation_signers_map : & ' static Mutex < HashMap < Address , AttestationSigner > > ,
@@ -59,30 +59,34 @@ fn modify_sigers(
59
59
for ( id, allocation) in allocations. iter ( ) {
60
60
if !signers. contains_key ( id) {
61
61
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"
64
66
) ;
65
67
66
68
let signer =
67
69
AttestationSigner :: new ( indexer_mnemonic, allocation, chain_id, * dispute_manager) ;
68
70
match signer {
69
71
Ok ( signer) => {
70
72
tracing:: debug!(
71
- "Successfully created attestation signer for allocation {}" ,
72
- allocation. id
73
+ allocation_id = ? allocation. id ,
74
+ "Successfully created attestation signer for allocation"
73
75
) ;
74
76
signers. insert ( * id, signer) ;
75
77
}
76
78
Err ( e) => {
77
79
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"
81
85
) ;
82
86
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"
86
90
) ;
87
91
}
88
92
}
0 commit comments