mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 20:57:20 +00:00
Add a Log method on Scheme for better debugging
This commit is contained in:
@@ -86,6 +86,11 @@ func NewScheme() *Scheme {
|
||||
return s
|
||||
}
|
||||
|
||||
// Log sets a logger on the scheme. For test purposes only
|
||||
func (s *Scheme) Log(l DebugLogger) {
|
||||
s.converter.Debug = l
|
||||
}
|
||||
|
||||
// nameFunc returns the name of the type that we wish to use for encoding. Defaults to
|
||||
// the go name of the type if the type is not registered.
|
||||
func (s *Scheme) nameFunc(t reflect.Type) string {
|
||||
|
Reference in New Issue
Block a user