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

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)