From c3fd29a0e960c13a90c1375d94c196eb31ab976f Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Fri, 18 Nov 2016 11:08:18 -0500 Subject: [PATCH] Logging cleanup --- cmd/kops/create_cluster.go | 2 +- upup/pkg/fi/cloudup/tagbuilder.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/kops/create_cluster.go b/cmd/kops/create_cluster.go index 97bdbb6dd8..343756c426 100644 --- a/cmd/kops/create_cluster.go +++ b/cmd/kops/create_cluster.go @@ -204,7 +204,7 @@ func RunCreateCluster(f *util.Factory, cmd *cobra.Command, args []string, out io return fmt.Errorf("unknown networking mode %q", c.Networking) } - glog.Infof("networking selected %s, %s", c.Networking, cluster.Spec.Networking) + glog.V(4).Infof("networking mode=%s => %s", c.Networking, fi.DebugAsJsonString(cluster.Spec.Networking)) if c.Zones != "" { existingZones := make(map[string]*api.ClusterZoneSpec) diff --git a/upup/pkg/fi/cloudup/tagbuilder.go b/upup/pkg/fi/cloudup/tagbuilder.go index 366a6dc48a..893b0a9834 100644 --- a/upup/pkg/fi/cloudup/tagbuilder.go +++ b/upup/pkg/fi/cloudup/tagbuilder.go @@ -50,6 +50,7 @@ func buildCloudupTags(cluster *api.Cluster) (sets.String, error) { } else if networking.CNI != nil || networking.Weave != nil { tags.Insert("_networking_cni") } else if networking.Kopeio != nil { + // TODO combine with the External // Kopeio is based on kubenet / external // TODO combine with External tags.Insert("_networking_kubenet", "_networking_external") @@ -123,7 +124,7 @@ func buildCloudupTags(cluster *api.Cluster) (sets.String, error) { tags.Insert(versionTag) } - glog.Infof("tags: %s", tags.List()) + glog.V(4).Infof("tags: %s", tags.List()) return tags, nil }