Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more context to deployment log entries #54

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions deployment/dockerdeploy/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ func (d *Deployer) NewCluster(ctx context.Context, def *clusterdef.Cluster) (dep
return
}

d.logger.Info("deployed node")
d.logger.Info("deployed node",
zap.String("address", node.IPAddress),
zap.String("id", node.NodeID),
zap.String("container", node.ContainerID))

nodes = append(nodes, node)
waitCh <- nil
Expand All @@ -235,7 +238,7 @@ func (d *Deployer) NewCluster(ctx context.Context, def *clusterdef.Cluster) (dep
}
}

d.logger.Info("nodes deployed")
d.logger.Info("nodes deployed", zap.String("cluster", clusterID))

// we cheat for now...
clusters, err := d.listClusters(ctx)
Expand Down
3 changes: 2 additions & 1 deletion utils/clustercontrol/clustermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ func (m *ClusterManager) SetupNewCluster(ctx context.Context, opts *SetupNewClus
}
firstNodeCtrl := firstNodeMgr.Controller()

m.Logger.Info("setting up initial cluster node")
m.Logger.Info("setting up initial cluster node",
zap.String("endpoint", firstNodeEndpoint))

err := firstNodeMgr.SetupOneNodeCluster(ctx, &SetupOneNodeClusterOptions{
KvMemoryQuotaMB: opts.KvMemoryQuotaMB,
Expand Down
Loading