mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 05:22:24 -05:00 
			
		
		
		
	[chore] Bump otel deps -> v1.30.0/v0.52.0 (#3307)
This commit is contained in:
		
					parent
					
						
							
								9046220979
							
						
					
				
			
			
				commit
				
					
						b2572b9e07
					
				
			
		
					 97 changed files with 3438 additions and 1645 deletions
				
			
		
							
								
								
									
										59
									
								
								vendor/google.golang.org/grpc/grpclog/logger.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										59
									
								
								vendor/google.golang.org/grpc/grpclog/logger.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -18,70 +18,17 @@ | |||
| 
 | ||||
| package grpclog | ||||
| 
 | ||||
| import "google.golang.org/grpc/internal/grpclog" | ||||
| import "google.golang.org/grpc/grpclog/internal" | ||||
| 
 | ||||
| // Logger mimics golang's standard Logger as an interface. | ||||
| // | ||||
| // Deprecated: use LoggerV2. | ||||
| type Logger interface { | ||||
| 	Fatal(args ...any) | ||||
| 	Fatalf(format string, args ...any) | ||||
| 	Fatalln(args ...any) | ||||
| 	Print(args ...any) | ||||
| 	Printf(format string, args ...any) | ||||
| 	Println(args ...any) | ||||
| } | ||||
| type Logger internal.Logger | ||||
| 
 | ||||
| // SetLogger sets the logger that is used in grpc. Call only from | ||||
| // init() functions. | ||||
| // | ||||
| // Deprecated: use SetLoggerV2. | ||||
| func SetLogger(l Logger) { | ||||
| 	grpclog.Logger = &loggerWrapper{Logger: l} | ||||
| } | ||||
| 
 | ||||
| // loggerWrapper wraps Logger into a LoggerV2. | ||||
| type loggerWrapper struct { | ||||
| 	Logger | ||||
| } | ||||
| 
 | ||||
| func (g *loggerWrapper) Info(args ...any) { | ||||
| 	g.Logger.Print(args...) | ||||
| } | ||||
| 
 | ||||
| func (g *loggerWrapper) Infoln(args ...any) { | ||||
| 	g.Logger.Println(args...) | ||||
| } | ||||
| 
 | ||||
| func (g *loggerWrapper) Infof(format string, args ...any) { | ||||
| 	g.Logger.Printf(format, args...) | ||||
| } | ||||
| 
 | ||||
| func (g *loggerWrapper) Warning(args ...any) { | ||||
| 	g.Logger.Print(args...) | ||||
| } | ||||
| 
 | ||||
| func (g *loggerWrapper) Warningln(args ...any) { | ||||
| 	g.Logger.Println(args...) | ||||
| } | ||||
| 
 | ||||
| func (g *loggerWrapper) Warningf(format string, args ...any) { | ||||
| 	g.Logger.Printf(format, args...) | ||||
| } | ||||
| 
 | ||||
| func (g *loggerWrapper) Error(args ...any) { | ||||
| 	g.Logger.Print(args...) | ||||
| } | ||||
| 
 | ||||
| func (g *loggerWrapper) Errorln(args ...any) { | ||||
| 	g.Logger.Println(args...) | ||||
| } | ||||
| 
 | ||||
| func (g *loggerWrapper) Errorf(format string, args ...any) { | ||||
| 	g.Logger.Printf(format, args...) | ||||
| } | ||||
| 
 | ||||
| func (g *loggerWrapper) V(l int) bool { | ||||
| 	// Returns true for all verbose level. | ||||
| 	return true | ||||
| 	internal.LoggerV2Impl = &internal.LoggerWrapper{Logger: l} | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue