mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 13:50:01 +00:00 
			
		
		
		
	Update go-logr dependencies
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
This commit is contained in:
		
							
								
								
									
										32
									
								
								vendor/github.com/go-logr/logr/discard.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										32
									
								
								vendor/github.com/go-logr/logr/discard.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -20,35 +20,5 @@ package logr | ||||
| // used whenever the caller is not interested in the logs.  Logger instances | ||||
| // produced by this function always compare as equal. | ||||
| func Discard() Logger { | ||||
| 	return Logger{ | ||||
| 		level: 0, | ||||
| 		sink:  discardLogSink{}, | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // discardLogSink is a LogSink that discards all messages. | ||||
| type discardLogSink struct{} | ||||
|  | ||||
| // Verify that it actually implements the interface | ||||
| var _ LogSink = discardLogSink{} | ||||
|  | ||||
| func (l discardLogSink) Init(RuntimeInfo) { | ||||
| } | ||||
|  | ||||
| func (l discardLogSink) Enabled(int) bool { | ||||
| 	return false | ||||
| } | ||||
|  | ||||
| func (l discardLogSink) Info(int, string, ...interface{}) { | ||||
| } | ||||
|  | ||||
| func (l discardLogSink) Error(error, string, ...interface{}) { | ||||
| } | ||||
|  | ||||
| func (l discardLogSink) WithValues(...interface{}) LogSink { | ||||
| 	return l | ||||
| } | ||||
|  | ||||
| func (l discardLogSink) WithName(string) LogSink { | ||||
| 	return l | ||||
| 	return New(nil) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user