Switch to klog/v2

This commit is contained in:
xing-yang
2020-11-03 04:00:37 +00:00
parent 5caa4bb520
commit 7efebbedec
8 changed files with 19 additions and 12 deletions

11
vendor/k8s.io/klog/v2/klog.go generated vendored
View File

@@ -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{}) {