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
|
end
|
||||||
|
|
||||||
def setup_logging
|
def setup_logging
|
||||||
@logger = if @logging
|
@logger ||= if @logging
|
||||||
Kemal::CommonLogHandler.new(@env)
|
Kemal::CommonLogHandler.new(@env)
|
||||||
else
|
else
|
||||||
Kemal::NullLogHandler.new(@env)
|
Kemal::NullLogHandler.new(@env)
|
||||||
|
|
Loading…
Reference in a new issue