From 055d648ed7a2e588e11219cc0bda2df7af0eafe5 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Mon, 17 Aug 2015 11:14:37 -0700 Subject: [PATCH] Change log_flush_frequency to use - Since we have the rename, we don't need our declaration to look like glog's. --- hack/verify-flags/excluded-flags.txt | 1 - hack/verify-flags/known-flags.txt | 1 + pkg/util/logs.go | 3 +-- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hack/verify-flags/excluded-flags.txt b/hack/verify-flags/excluded-flags.txt index 6fca694c9d..10f6857783 100644 --- a/hack/verify-flags/excluded-flags.txt +++ b/hack/verify-flags/excluded-flags.txt @@ -9,7 +9,6 @@ gke_context host_port_endpoints kubecfg_file kube_master_url -log_flush_frequency max_in_flight max_par new_file_0644 diff --git a/hack/verify-flags/known-flags.txt b/hack/verify-flags/known-flags.txt index e843d901ec..c21da97869 100644 --- a/hack/verify-flags/known-flags.txt +++ b/hack/verify-flags/known-flags.txt @@ -125,6 +125,7 @@ kube-master label-columns last-release-pr legacy-userspace-proxy +log-flush-frequency long-running-request-regexp low-diskspace-threshold-mb manifest-url diff --git a/pkg/util/logs.go b/pkg/util/logs.go index eb2ef7eefe..03a7314a10 100644 --- a/pkg/util/logs.go +++ b/pkg/util/logs.go @@ -25,8 +25,7 @@ import ( "github.com/spf13/pflag" ) -// Uses _ instead of - to better align with glog flags. -var logFlushFreq = pflag.Duration("log_flush_frequency", 5*time.Second, "Maximum number of seconds between log flushes") +var logFlushFreq = pflag.Duration("log-flush-frequency", 5*time.Second, "Maximum number of seconds between log flushes") // TODO(thockin): This is temporary until we agree on log dirs and put those into each cmd. func init() {