mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Merge pull request #140 from jeromegn/patch-1
Only set @logger when not previously set
This commit is contained in:
commit
3b4440d358
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