diff --git a/Gopkg.lock b/Gopkg.lock index a58f683cf..ed7b671f2 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -73,7 +73,7 @@ [[projects]] name = "github.com/golang/glog" packages = ["."] - revision = "44145f04b68cf362d9c4df2182967c2275eaefed" + revision = "23def4e6c14b4da8ac2ed8007337bc5eb5007998" [[projects]] branch = "master" @@ -311,6 +311,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "37383226ed6a091aead0a58ba81576d6613623e02524ddc821ec837fc1261f3e" + inputs-digest = "e9f1fef2b31734b97bfaffb813a6a46b1c55c199a944abac901ab9ddb4998af3" solver-name = "gps-cdcl" solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index e89fb02c7..bb3375955 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -33,6 +33,7 @@ required = [ [[constraint]] name = "github.com/golang/glog" + revision = "23def4e6c14b4da8ac2ed8007337bc5eb5007998" [[constraint]] name = "github.com/spf13/pflag" diff --git a/vendor/github.com/golang/glog/README b/vendor/github.com/golang/glog/README index 5f9c11485..387b4eb68 100644 --- a/vendor/github.com/golang/glog/README +++ b/vendor/github.com/golang/glog/README @@ -5,7 +5,7 @@ Leveled execution logs for Go. This is an efficient pure Go implementation of leveled logs in the manner of the open source C++ package - http://code.google.com/p/google-glog + https://github.com/google/glog By binding methods to booleans it is possible to use the log package without paying the expense of evaluating the arguments to the log. diff --git a/vendor/github.com/golang/glog/glog.go b/vendor/github.com/golang/glog/glog.go index 3e63fffd5..54bd7afdc 100644 --- a/vendor/github.com/golang/glog/glog.go +++ b/vendor/github.com/golang/glog/glog.go @@ -676,7 +676,10 @@ func (l *loggingT) output(s severity, buf *buffer, file string, line int, alsoTo } } data := buf.Bytes() - if l.toStderr { + if !flag.Parsed() { + os.Stderr.Write([]byte("ERROR: logging before flag.Parse: ")) + os.Stderr.Write(data) + } else if l.toStderr { os.Stderr.Write(data) } else { if alsoToStderr || l.alsoToStderr || s >= l.stderrThreshold.get() {