Skip to content

Commit

Permalink
feat(act): node debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferenc Sárai committed Jul 30, 2024
1 parent a63499d commit 074305b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/check/act/act.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts int
return err
}

for name, node := range cluster.Nodes() {
c.logger.Infof("Node %s: %+v", name, node.Config())
c.logger.Info("-------------------")
cl := node.Client()
t, _ := cl.Topology(ctx)
c.logger.Infof("Node %s: %+v", name, t)
c.logger.Info("=====================================")
}

sortedNodes := cluster.NodeNames()
upNodeName := sortedNodes[0]
upClient := clients[upNodeName]
Expand Down Expand Up @@ -203,7 +212,6 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts int
// download act file
his := gFile.HistroryAddress()
c.logger.Infof("ACT file download started: %s", fileAddress.String())
c.logger.Infof("Context: %+v", ctx)
size1, hash1, err1 := client2.DownloadActFile(ctx, fileAddress, &api.DownloadOptions{Act: &act, ActPublicKey: &publisher, ActHistoryAddress: &his})
if err1 != nil {
return fmt.Errorf("node %s: %w", nodeName1, err1)
Expand Down

0 comments on commit 074305b

Please sign in to comment.