diff --git a/cmd/cluster.go b/cmd/cluster.go index a6e4da67..b174ccf9 100644 --- a/cmd/cluster.go +++ b/cmd/cluster.go @@ -67,7 +67,10 @@ makes A records in Route53 accessible as ...`, } clusters := devenv.FastFetchClusters(cnames) for _, c := range clusters { - c.SyncDNS(route53.ChangeActionUpsert, config.ZoneID, config.Domain) + err := c.SyncDNS(route53.ChangeActionUpsert, config.ZoneID, config.Domain) + if err != nil { + log.Error().Err(err).Interface("cluster", c).Msg("could not update DNS") + } } } else { cluster, err := devenv.GetGromitCluster(clusterName) diff --git a/devenv/cluster.go b/devenv/cluster.go index 7da69c4b..29d63976 100644 --- a/devenv/cluster.go +++ b/devenv/cluster.go @@ -100,6 +100,7 @@ func (c *GromitCluster) Populate() error { if err != nil { continue } + c.log.Trace().Str("task", t).Str("ip", ip).Msg("populating tasks") c.tasks = append(c.tasks, GromitTask{ Name: tname, IP: ip, @@ -114,7 +115,7 @@ func (c *GromitCluster) SyncDNS(action route53.ChangeAction, zoneid string, doma var changes []route53.Change for _, t := range c.tasks { fqdn := fmt.Sprintf("%s.%s.%s", t.Name, c.Name, domain) - c.log.Trace().Str("fqdn", fqdn).Str("A record", t.IP).Msgf("for task %s", t.Name) + c.log.Debug().Str("fqdn", fqdn).Str("A record", t.IP).Msgf("for task %s", t.Name) changes = append(changes, route53.Change{ Action: action, ResourceRecordSet: &route53.ResourceRecordSet{