mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Initialize logger in config
This commit is contained in:
		
							parent
							
								
									51092fbb91
								
							
						
					
					
						commit
						0498801b0d
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -12,6 +12,7 @@ module Kemal
 | 
				
			||||||
      @env = "development" unless @env
 | 
					      @env = "development" unless @env
 | 
				
			||||||
      @public_folder = "./public"
 | 
					      @public_folder = "./public"
 | 
				
			||||||
      @logging = true
 | 
					      @logging = true
 | 
				
			||||||
 | 
					      @logger = nil
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def scheme
 | 
					    def scheme
 | 
				
			||||||
| 
						 | 
					@ -23,7 +24,7 @@ module Kemal
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def logger
 | 
					    def logger
 | 
				
			||||||
      @logger
 | 
					      @logger.not_nil!
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def logger=(logger)
 | 
					    def logger=(logger)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue