Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 055d648

Browse files
committed
Change log_flush_frequency to use -
Since we have the rename, we don't need our declaration to look like glog's.
1 parent c560f41 commit 055d648

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

hack/verify-flags/excluded-flags.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ gke_context
99
host_port_endpoints
1010
kubecfg_file
1111
kube_master_url
12-
log_flush_frequency
1312
max_in_flight
1413
max_par
1514
new_file_0644

hack/verify-flags/known-flags.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ kube-master
125125
label-columns
126126
last-release-pr
127127
legacy-userspace-proxy
128+
log-flush-frequency
128129
long-running-request-regexp
129130
low-diskspace-threshold-mb
130131
manifest-url

pkg/util/logs.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ import (
2525
"github.com/spf13/pflag"
2626
)
2727

28-
// Uses _ instead of - to better align with glog flags.
29-
var logFlushFreq = pflag.Duration("log_flush_frequency", 5*time.Second, "Maximum number of seconds between log flushes")
28+
var logFlushFreq = pflag.Duration("log-flush-frequency", 5*time.Second, "Maximum number of seconds between log flushes")
3029

3130
// TODO(thockin): This is temporary until we agree on log dirs and put those into each cmd.
3231
func init() {

0 commit comments

Comments
 (0)