mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
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
|
||||
|
||||
def setup_logging
|
||||
if @logging
|
||||
@logger ||= Kemal::CommonLogHandler.new(@env)
|
||||
HANDLERS.insert(0, @logger.not_nil!)
|
||||
@logger = if @logging
|
||||
Kemal::CommonLogHandler.new(@env)
|
||||
else
|
||||
@logger = Kemal::NullLogHandler.new(@env)
|
||||
Kemal::NullLogHandler.new(@env)
|
||||
end
|
||||
HANDLERS.insert(0, @logger.not_nil!)
|
||||
end
|
||||
|
||||
private def setup_error_handler
|
||||
|
|
Loading…
Reference in a new issue