Switch to klog/v2
This commit is contained in:
11
vendor/k8s.io/klog/v2/klog.go
generated
vendored
11
vendor/k8s.io/klog/v2/klog.go
generated
vendored
@@ -1324,14 +1324,21 @@ func (v Verbose) InfoS(msg string, keysAndValues ...interface{}) {
|
||||
}
|
||||
}
|
||||
|
||||
// Error is equivalent to the global Error function, guarded by the value of v.
|
||||
// See the documentation of V for usage.
|
||||
// Deprecated: Use ErrorS instead.
|
||||
func (v Verbose) Error(err error, msg string, args ...interface{}) {
|
||||
if v.enabled {
|
||||
logging.errorS(err, v.logr, msg, args...)
|
||||
}
|
||||
}
|
||||
|
||||
// ErrorS is equivalent to the global Error function, guarded by the value of v.
|
||||
// See the documentation of V for usage.
|
||||
func (v Verbose) ErrorS(err error, msg string, keysAndValues ...interface{}) {
|
||||
if v.enabled {
|
||||
logging.errorS(err, v.logr, msg, keysAndValues...)
|
||||
}
|
||||
}
|
||||
|
||||
// Info logs to the INFO log.
|
||||
// Arguments are handled in the manner of fmt.Print; a newline is appended if missing.
|
||||
func Info(args ...interface{}) {
|
||||
|
5
vendor/modules.txt
vendored
5
vendor/modules.txt
vendored
@@ -322,7 +322,7 @@ k8s.io/apimachinery/pkg/version
|
||||
k8s.io/apimachinery/pkg/watch
|
||||
k8s.io/apimachinery/third_party/forked/golang/json
|
||||
k8s.io/apimachinery/third_party/forked/golang/reflect
|
||||
# k8s.io/client-go v0.19.0 => k8s.io/client-go v0.19.0
|
||||
# k8s.io/client-go v0.19.1 => k8s.io/client-go v0.19.0
|
||||
## explicit
|
||||
k8s.io/client-go/discovery
|
||||
k8s.io/client-go/discovery/fake
|
||||
@@ -539,9 +539,8 @@ k8s.io/client-go/util/workqueue
|
||||
k8s.io/component-base/metrics
|
||||
k8s.io/component-base/version
|
||||
# k8s.io/klog v1.0.0
|
||||
## explicit
|
||||
k8s.io/klog
|
||||
# k8s.io/klog/v2 v2.2.0
|
||||
# k8s.io/klog/v2 v2.3.0
|
||||
## explicit
|
||||
k8s.io/klog/v2
|
||||
# k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6
|
||||
|
Reference in New Issue
Block a user