@@ -60,7 +60,7 @@ pub async fn assert_node_producing_mithril_stake_distribution(
60
60
fetch_last_mithril_stake_distribution_hash( url. clone( ) ) . await
61
61
} ) {
62
62
AttemptResult :: Ok ( hash) => {
63
- info ! ( "Aggregator produced a mithril stake distribution" ; "hash" => & hash) ;
63
+ info ! ( "Aggregator produced a mithril stake distribution" ; "hash" => & hash, "aggregator" => & aggregator . name ( ) ) ;
64
64
Ok ( hash)
65
65
}
66
66
AttemptResult :: Err ( error) => Err ( error) ,
@@ -112,7 +112,7 @@ pub async fn assert_signer_is_signing_mithril_stake_distribution(
112
112
fetch_mithril_stake_distribution_message( url. clone( ) , expected_epoch_min) . await
113
113
} ) {
114
114
AttemptResult :: Ok ( stake_distribution) => {
115
- info ! ( "Signer signed a mithril stake distribution" ; "certificate_hash" => & stake_distribution. certificate_hash) ;
115
+ info ! ( "Signer signed a mithril stake distribution" ; "certificate_hash" => & stake_distribution. certificate_hash, "aggregator" => & aggregator . name ( ) ) ;
116
116
Ok ( stake_distribution. certificate_hash )
117
117
}
118
118
AttemptResult :: Err ( error) => Err ( error) ,
@@ -146,7 +146,7 @@ pub async fn assert_node_producing_snapshot(aggregator: &Aggregator) -> StdResul
146
146
fetch_last_snapshot_digest( url. clone( ) ) . await
147
147
} ) {
148
148
AttemptResult :: Ok ( digest) => {
149
- info ! ( "Aggregator produced a snapshot" ; "digest" => & digest) ;
149
+ info ! ( "Aggregator produced a snapshot" ; "digest" => & digest, "aggregator" => & aggregator . name ( ) ) ;
150
150
Ok ( digest)
151
151
}
152
152
AttemptResult :: Err ( error) => Err ( error) ,
@@ -189,7 +189,7 @@ pub async fn assert_signer_is_signing_snapshot(
189
189
fetch_snapshot_message( url. clone( ) , expected_epoch_min) . await
190
190
} ) {
191
191
AttemptResult :: Ok ( snapshot) => {
192
- info ! ( "Signer signed a snapshot" ; "certificate_hash" => & snapshot. certificate_hash) ;
192
+ info ! ( "Signer signed a snapshot" ; "certificate_hash" => & snapshot. certificate_hash, "aggregator" => & aggregator . name ( ) ) ;
193
193
Ok ( snapshot. certificate_hash )
194
194
}
195
195
AttemptResult :: Err ( error) => {
@@ -223,7 +223,7 @@ pub async fn assert_node_producing_cardano_database_snapshot(
223
223
fetch_last_cardano_database_snapshot_hash( url. clone( ) ) . await
224
224
} ) {
225
225
AttemptResult :: Ok ( hash) => {
226
- info ! ( "Aggregator produced a Cardano database snapshot" ; "hash" => & hash) ;
226
+ info ! ( "Aggregator produced a Cardano database snapshot" ; "hash" => & hash, "aggregator" => & aggregator . name ( ) ) ;
227
227
Ok ( hash)
228
228
}
229
229
AttemptResult :: Err ( error) => Err ( error) ,
@@ -268,7 +268,7 @@ pub async fn assert_signer_is_signing_cardano_database_snapshot(
268
268
fetch_cardano_database_snapshot_message( url. clone( ) , expected_epoch_min) . await
269
269
} ) {
270
270
AttemptResult :: Ok ( snapshot) => {
271
- info ! ( "Signer signed a snapshot" ; "certificate_hash" => & snapshot. certificate_hash) ;
271
+ info ! ( "Signer signed a snapshot" ; "certificate_hash" => & snapshot. certificate_hash, "aggregator" => & aggregator . name ( ) ) ;
272
272
Ok ( snapshot. certificate_hash )
273
273
}
274
274
AttemptResult :: Err ( error) => Err ( error) ,
@@ -310,7 +310,7 @@ pub async fn assert_node_producing_cardano_database_digests_map(
310
310
fetch_cardano_database_digests_map( url. clone( ) ) . await
311
311
} ) {
312
312
AttemptResult :: Ok ( cardano_database_digests_map) => {
313
- info ! ( "Aggregator produced a Cardano database digests map" ; "total_digests" => & cardano_database_digests_map. len( ) ) ;
313
+ info ! ( "Aggregator produced a Cardano database digests map" ; "total_digests" => & cardano_database_digests_map. len( ) , "aggregator" => & aggregator . name ( ) ) ;
314
314
Ok ( cardano_database_digests_map)
315
315
}
316
316
AttemptResult :: Err ( error) => Err ( error) ,
@@ -329,7 +329,7 @@ pub async fn assert_node_producing_cardano_transactions(
329
329
aggregator : & Aggregator ,
330
330
) -> StdResult < String > {
331
331
let url = format ! ( "{}/artifact/cardano-transactions" , aggregator. endpoint( ) ) ;
332
- info ! ( "Waiting for the aggregator to produce a Cardano transactions artifact" ; "aggregator" => & aggregator. name( ) ) ;
332
+ info ! ( "Waiting for the aggregator to produce a Cardano transactions artifact" ; "aggregator" => & aggregator. name( ) , "aggregator" => & aggregator . name ( ) ) ;
333
333
334
334
async fn fetch_last_cardano_transaction_snapshot_hash (
335
335
url : String ,
@@ -348,7 +348,7 @@ pub async fn assert_node_producing_cardano_transactions(
348
348
fetch_last_cardano_transaction_snapshot_hash( url. clone( ) ) . await
349
349
} ) {
350
350
AttemptResult :: Ok ( hash) => {
351
- info ! ( "Aggregator produced a Cardano transactions artifact" ; "hash" => & hash) ;
351
+ info ! ( "Aggregator produced a Cardano transactions artifact" ; "hash" => & hash, "aggregator" => & aggregator . name ( ) ) ;
352
352
Ok ( hash)
353
353
}
354
354
AttemptResult :: Err ( error) => Err ( error) ,
@@ -394,7 +394,7 @@ pub async fn assert_signer_is_signing_cardano_transactions(
394
394
fetch_cardano_transaction_snapshot_message( url. clone( ) , expected_epoch_min) . await
395
395
} ) {
396
396
AttemptResult :: Ok ( artifact) => {
397
- info ! ( "Signer signed a Cardano transactions artifact" ; "certificate_hash" => & artifact. certificate_hash) ;
397
+ info ! ( "Signer signed a Cardano transactions artifact" ; "certificate_hash" => & artifact. certificate_hash, "aggregator" => & aggregator . name ( ) ) ;
398
398
Ok ( artifact. certificate_hash )
399
399
}
400
400
AttemptResult :: Err ( error) => Err ( error) ,
@@ -438,7 +438,7 @@ pub async fn assert_node_producing_cardano_stake_distribution(
438
438
fetch_last_cardano_stake_distribution_message( url. clone( ) ) . await
439
439
} ) {
440
440
AttemptResult :: Ok ( ( hash, epoch) ) => {
441
- info ! ( "Aggregator produced a Cardano stake distribution" ; "hash" => & hash, "epoch" => #?epoch) ;
441
+ info ! ( "Aggregator produced a Cardano stake distribution" ; "hash" => & hash, "epoch" => #?epoch, "aggregator" => & aggregator . name ( ) ) ;
442
442
Ok ( ( hash, epoch) )
443
443
}
444
444
AttemptResult :: Err ( error) => Err ( error) ,
@@ -490,7 +490,7 @@ pub async fn assert_signer_is_signing_cardano_stake_distribution(
490
490
fetch_cardano_stake_distribution_message( url. clone( ) , expected_epoch_min) . await
491
491
} ) {
492
492
AttemptResult :: Ok ( cardano_stake_distribution) => {
493
- info ! ( "Signer signed a Cardano stake distribution" ; "certificate_hash" => & cardano_stake_distribution. certificate_hash) ;
493
+ info ! ( "Signer signed a Cardano stake distribution" ; "certificate_hash" => & cardano_stake_distribution. certificate_hash, "aggregator" => & aggregator . name ( ) ) ;
494
494
Ok ( cardano_stake_distribution. certificate_hash )
495
495
}
496
496
AttemptResult :: Err ( error) => Err ( error) ,
@@ -529,7 +529,8 @@ pub async fn assert_is_creating_certificate_with_enough_signers(
529
529
info ! (
530
530
"Certificate is signed by expected number of signers: {} >= {} " ,
531
531
certificate. metadata. signers. len( ) ,
532
- total_signers_expected
532
+ total_signers_expected ;
533
+ "aggregator" => & aggregator. name( )
533
534
) ;
534
535
Ok ( ( ) )
535
536
} else {
0 commit comments