mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Only set @logger when not previously set
This came in contradiction with the docs.
This commit is contained in:
		
							parent
							
								
									65d0af5b5f
								
							
						
					
					
						commit
						e407f52897
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -50,7 +50,7 @@ module Kemal | |||
|     end | ||||
| 
 | ||||
|     def setup_logging | ||||
|       @logger = if @logging | ||||
|       @logger ||= if @logging | ||||
|                   Kemal::CommonLogHandler.new(@env) | ||||
|                 else | ||||
|                   Kemal::NullLogHandler.new(@env) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue