mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 12:42:09 +00:00 
			
		
		
		
	Remove unused methods in Invidious::LogHandler
				
					
				
			This commit is contained in:
		| @@ -34,24 +34,11 @@ class Invidious::LogHandler < Kemal::BaseLogHandler | ||||
|     context | ||||
|   end | ||||
|  | ||||
|   def puts(message : String) | ||||
|     @io << message << '\n' | ||||
|     @io.flush | ||||
|   end | ||||
|  | ||||
|   def write(message : String) | ||||
|     @io << message | ||||
|     @io.flush | ||||
|   end | ||||
|  | ||||
|   def set_log_level(level : String) | ||||
|     @level = LogLevel.parse(level) | ||||
|   end | ||||
|  | ||||
|   def set_log_level(level : LogLevel) | ||||
|     @level = level | ||||
|   end | ||||
|  | ||||
|   {% for level in %w(trace debug info warn error fatal) %} | ||||
|     def {{level.id}}(message : String) | ||||
|       if LogLevel::{{level.id.capitalize}} >= @level | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syeopite
					syeopite