mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-04 09:12:24 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package memlimit
 | 
						|
 | 
						|
import (
 | 
						|
	"context"
 | 
						|
	"log/slog"
 | 
						|
)
 | 
						|
 | 
						|
type noopLogger struct{}
 | 
						|
 | 
						|
func (noopLogger) Enabled(context.Context, slog.Level) bool  { return false }
 | 
						|
func (noopLogger) Handle(context.Context, slog.Record) error { return nil }
 | 
						|
func (d noopLogger) WithAttrs([]slog.Attr) slog.Handler      { return d }
 | 
						|
func (d noopLogger) WithGroup(string) slog.Handler           { return d }
 |