mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Revert back to File.write
This commit is contained in:
		
							parent
							
								
									485fed11af
								
							
						
					
					
						commit
						556247c4ad
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -35,7 +35,7 @@ class Kemal::Logger < HTTP::Handler
 | 
			
		|||
 | 
			
		||||
  def write(message)
 | 
			
		||||
    if @env == "production"
 | 
			
		||||
      File.write "kemal.log", message
 | 
			
		||||
      @handler.write message.to_slice
 | 
			
		||||
    else
 | 
			
		||||
      @handler.print message
 | 
			
		||||
    end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue