Skip to content

Commit 8f29e9e

Browse files
emosbaughsgalsaleh
andauthored
chore(ci): cmx log node and network id for debugging purposes (#2143)
* chore(ci): cmx log node and network id for debugging purposes * Update e2e/cluster/cmx/cluster.go Co-authored-by: Salah Al Saleh <[email protected]> * Update e2e/cluster/cmx/cluster.go --------- Co-authored-by: Salah Al Saleh <[email protected]>
1 parent 086a9ea commit 8f29e9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

e2e/cluster/cmx/cluster.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func NewCluster(in *ClusterInput) *Cluster {
6868
if err != nil {
6969
return fmt.Errorf("failed to create node %d: %w", i, err)
7070
}
71+
in.T.Logf("node%d created with ID %s", i, node.ID)
7172
mu.Lock()
7273
c.Nodes[i] = *node
7374
mu.Unlock()
@@ -99,7 +100,9 @@ func NewNetwork(in *ClusterInput) (*Network, error) {
99100
if len(networks) != 1 {
100101
return nil, fmt.Errorf("expected 1 network, got %d", len(networks))
101102
}
102-
return &networks[0], nil
103+
network := &networks[0]
104+
in.T.Logf("Network created with ID %s", network.ID)
105+
return network, nil
103106
}
104107

105108
func NewNode(in *ClusterInput, index int, networkID string) (*Node, error) {

0 commit comments

Comments
 (0)