third_party/go/src/github.com/cosnicolaou/llog: Update to latest version.
Change-Id: I5b393228fbb4655ffb531509263360572f5116df
diff --git a/go/src/github.com/cosnicolaou/llog/README.google b/go/src/github.com/cosnicolaou/llog/README.google
index e9c7a2b..50ca404 100644
--- a/go/src/github.com/cosnicolaou/llog/README.google
+++ b/go/src/github.com/cosnicolaou/llog/README.google
@@ -1,5 +1,5 @@
-URL:https://github.com/cosnicolaou/llog/archive/aa6df5d093cf0e782fa96d587f06331bbe07c40a.zip
-Version: aa6df5d093cf0e782fa96d587f06331bbe07c40a
+URL:https://github.com/cosnicolaou/llog/archive/32b01e43fdd113fb56658658243ba7070edd5ec3.zip
+Version: 32b01e43fdd113fb56658658243ba7070edd5ec3
License: Apache 2.0
License File: LICENSE
diff --git a/go/src/github.com/cosnicolaou/llog/glog.go b/go/src/github.com/cosnicolaou/llog/glog.go
index c53668f..9f420be 100644
--- a/go/src/github.com/cosnicolaou/llog/glog.go
+++ b/go/src/github.com/cosnicolaou/llog/glog.go
@@ -1135,6 +1135,18 @@
}
func (l *Log) V(level Level) bool {
+ // Here is a cheap but safe test to see if V logging is enabled globally.
+ if l.verbosity.get() >= level {
+ return true
+ }
+
+ // It's off globally but it vmodule may still be set.
+ // Here is another cheap but safe test to see if vmodule is enabled.
+ if atomic.LoadInt32(&l.filterLength) == 0 {
+ return false
+ }
+
+ // Only call VDepth when there's work for it to do.
return l.VDepth(1, level)
}