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…
Reference in a new issue