Make sure to instantiate null log handler
This commit is contained in:
parent
c7d2b33bb3
commit
e3c3154006
1 changed files with 6 additions and 6 deletions
|
@ -47,12 +47,12 @@ module Kemal
|
||||||
end
|
end
|
||||||
|
|
||||||
def setup_logging
|
def setup_logging
|
||||||
if @logging
|
@logger = if @logging
|
||||||
@logger ||= Kemal::CommonLogHandler.new(@env)
|
Kemal::CommonLogHandler.new(@env)
|
||||||
HANDLERS.insert(0, @logger.not_nil!)
|
|
||||||
else
|
else
|
||||||
@logger = Kemal::NullLogHandler.new(@env)
|
Kemal::NullLogHandler.new(@env)
|
||||||
end
|
end
|
||||||
|
HANDLERS.insert(0, @logger.not_nil!)
|
||||||
end
|
end
|
||||||
|
|
||||||
private def setup_error_handler
|
private def setup_error_handler
|
||||||
|
|
Loading…
Reference in a new issue