Merge pull request #140 from jeromegn/patch-1

Only set @logger when not previously set
This commit is contained in:
Serdar Dogruyol 2016-04-11 20:32:24 +03:00
commit 3b4440d358
1 changed files with 1 additions and 1 deletions

View File

@ -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)