From 074305bc001a4f7da63b4032aa85a32b8f9006e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20S=C3=A1rai?= Date: Tue, 30 Jul 2024 16:46:53 +0200 Subject: [PATCH] feat(act): node debug --- pkg/check/act/act.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkg/check/act/act.go b/pkg/check/act/act.go index b21db6e49..903c8210c 100644 --- a/pkg/check/act/act.go +++ b/pkg/check/act/act.go @@ -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] @@ -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)