From a570b81220331b7182561643faf556fd4ce5cddb Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Tue, 24 Jun 2014 21:29:53 -0700 Subject: [PATCH] Default --logtostderr=true This retains compatibility with existing logging to stderr, until we can agree on log dirs for each cmd. --- pkg/util/logs.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/util/logs.go b/pkg/util/logs.go index 925176d721c..f34695d6e97 100644 --- a/pkg/util/logs.go +++ b/pkg/util/logs.go @@ -26,6 +26,11 @@ import ( var logFlushFreq = flag.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() { + flag.Set("logtostderr", "true") +} + // This serves as a bridge between the standard log package and the glog package. type GlogWriter struct{}