@@ -15,11 +15,11 @@ CancellationToken cancellationToken
1515)
1616 : ISubnetProvider {
1717 public async Task < List < CidrBlock > > GetAsync ( ) {
18- logger . LogInformation ( "Getting subnets from agents" ) ;
18+ logger . LogDebug ( "Getting subnets from agents" ) ;
1919 var allSubnets = new List < CidrBlock > ( ) ;
2020
2121 foreach ( var agent in agents ) {
22- logger . LogInformation ( "Getting subnets from agent {Address}" , agent . Address ) ;
22+ logger . LogInformation ( "Requesting subnets from agent {Id} ({ Address})" , agent . Id , agent . Address ) ;
2323
2424 try {
2525 // await cluster.SendAsync( agent, new GiveMeSubnetsRequest(), CancellationToken.None );
@@ -32,8 +32,12 @@ public async Task<List<CidrBlock>> GetAsync() {
3232 ) ;
3333
3434 allSubnets . AddRange ( response . Subnets ) ;
35- logger . LogInformation ( "Received {Count} subnets from {Address}: {Subnets}" ,
36- response . Subnets . Count , agent . Address , string . Join ( ", " , response . Subnets ) ) ;
35+ logger . LogInformation (
36+ "Received subnet(s) from agent {Id} ({Address}): {Subnets}" ,
37+ response . Subnets . Count ,
38+ agent . Address ,
39+ string . Join ( ", " , response . Subnets )
40+ ) ;
3741 }
3842 catch ( Exception ex ) {
3943 logger . LogWarning ( ex , "cluster.SendAsync failed" , agent . Address ) ;
0 commit comments