@@ -50,7 +50,7 @@ impl NodeId {
50
50
crate :: NodeId :: PublicKey ( pk) => {
51
51
if pk != node_id {
52
52
return Err ( LightningError :: ValidationError ( format ! (
53
- "the provided node id does not match the one returned by the backend ({} != {})." ,
53
+ "The provided node id does not match the one returned by the backend ({} != {})." ,
54
54
pk, node_id
55
55
) ) ) ;
56
56
}
@@ -655,7 +655,7 @@ impl Simulation {
655
655
// csr: consume simulation results
656
656
let csr_write_results = self . write_results . clone ( ) ;
657
657
tasks. spawn ( async move {
658
- log:: debug!( "Staring simulation results consumer." ) ;
658
+ log:: debug!( "Starting simulation results consumer." ) ;
659
659
if let Err ( e) = consume_simulation_results (
660
660
result_logger,
661
661
results_receiver,
@@ -795,9 +795,9 @@ impl Simulation {
795
795
consume_events ( ce_node, receiver, ce_output_sender, ce_listener) . await
796
796
{
797
797
ce_shutdown. trigger ( ) ;
798
- log:: error!( "Event consumer exited with error: {e:?}." ) ;
798
+ log:: error!( "Event consumer for node {node_info} exited with error: {e:?}." ) ;
799
799
} else {
800
- log:: debug!( "Event consumer for node {node_info} received shutdown signal ." ) ;
800
+ log:: debug!( "Event consumer for node {node_info} completed successfully ." ) ;
801
801
}
802
802
} ) ;
803
803
}
@@ -844,9 +844,9 @@ impl Simulation {
844
844
. await
845
845
{
846
846
pe_shutdown. trigger ( ) ;
847
- log:: debug!( "Event producer exited with error {e}." ) ;
847
+ log:: debug!( "Activity producer for {source} exited with error {e}." ) ;
848
848
} else {
849
- log:: debug!( "Random activity generator for {source} received shutdown signal ." ) ;
849
+ log:: debug!( "Activity producer for {source} completed successfully ." ) ;
850
850
}
851
851
} ) ;
852
852
}
@@ -940,7 +940,7 @@ async fn produce_events<N: DestinationGenerator + ?Sized, A: PaymentGenerator +
940
940
loop {
941
941
if let Some ( c) = node_generator. payment_count ( ) {
942
942
if c == current_count {
943
- log:: info!( "Payment count has been met: {c} payments. Stopping the activity." ) ;
943
+ log:: info!( "Payment count has been met for {source} : {c} payments. Stopping the activity." ) ;
944
944
return Ok ( ( ) ) ;
945
945
}
946
946
}
@@ -979,12 +979,12 @@ async fn produce_events<N: DestinationGenerator + ?Sized, A: PaymentGenerator +
979
979
} ,
980
980
} ;
981
981
982
- log:: debug!( "Generated random payment: {source} -> {}: {amount} msat." , destination) ;
982
+ log:: debug!( "Generated payment: {source} -> {}: {amount} msat." , destination) ;
983
983
984
984
// Send the payment, exiting if we can no longer send to the consumer.
985
985
let event = SimulationEvent :: SendPayment ( destination. clone( ) , amount) ;
986
986
if sender. send( event. clone( ) ) . await . is_err( ) {
987
- return Err ( SimulationError :: MpscChannelError ( format!( "Stopped random producer for {amount}: {source} -> {destination}." ) ) ) ;
987
+ return Err ( SimulationError :: MpscChannelError ( format!( "Stopped activity producer for {amount}: {source} -> {destination}." ) ) ) ;
988
988
}
989
989
990
990
current_count += 1 ;
0 commit comments