@@ -76,7 +76,9 @@ func NewSupernodeClient(ctx context.Context, logger log.Logger, keyring keyring.
7676 targetSupernode .GrpcEndpoint ,
7777 )
7878
79- logger .Info (ctx , "Connecting to supernode securely" , "endpoint" , targetSupernode .GrpcEndpoint , "target_id" , targetSupernode .CosmosAddress , "local_id" , factoryConfig .LocalCosmosAddress , "peer_type" , factoryConfig .PeerType )
79+ logger .Debug (ctx , "Preparing to connect to supernode securely" ,
80+ "endpoint" , targetSupernode .GrpcEndpoint , "target_id" , targetSupernode .CosmosAddress ,
81+ "local_id" , factoryConfig .LocalCosmosAddress , "peer_type" , factoryConfig .PeerType )
8082
8183 // Use provided client options or defaults
8284 options := clientOptions
@@ -93,7 +95,7 @@ func NewSupernodeClient(ctx context.Context, logger log.Logger, keyring keyring.
9395 targetSupernode .CosmosAddress , err )
9496 }
9597
96- logger .Info (ctx , "Connected to supernode securely" , "address" , targetSupernode .CosmosAddress , "endpoint" , targetSupernode .GrpcEndpoint )
98+ logger .Debug (ctx , "Connected to supernode securely" , "address" , targetSupernode .CosmosAddress , "endpoint" , targetSupernode .GrpcEndpoint )
9799
98100 // Create service clients
99101 cascadeClient := supernodeservice .NewCascadeAdapter (
@@ -116,9 +118,7 @@ func (c *supernodeClient) RegisterCascade(ctx context.Context, in *supernodeserv
116118 if err != nil {
117119 return nil , fmt .Errorf ("cascade registration failed: %w" , err )
118120 }
119-
120- c .logger .Info (ctx , "Cascade registered successfully" ,
121- "actionID" , in .ActionID , "taskId" , in .TaskId )
121+ c .logger .Info (ctx , "Cascade Registration request sent to supernode" , "actionID" , in .ActionID , "taskId" , in .TaskId )
122122
123123 return resp , nil
124124}
@@ -140,7 +140,7 @@ func (c *supernodeClient) GetSupernodeStatus(ctx context.Context) (*pb.StatusRes
140140 return nil , fmt .Errorf ("failed to get supernode status: %w" , err )
141141 }
142142
143- c .logger .Debug (ctx , "Supernode status retrieved successfully" )
143+ c .logger .Debug (ctx , "Supernode status retrieved successfully" , "response" , resp . String () )
144144 return resp , nil
145145}
146146
0 commit comments