From e407f528970d7e4d0ec9826027e5d22451e68308 Mon Sep 17 00:00:00 2001 From: Jerome Gravel-Niquet Date: Mon, 11 Apr 2016 10:54:59 -0400 Subject: [PATCH] Only set @logger when not previously set This came in contradiction with the docs. --- src/kemal/config.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kemal/config.cr b/src/kemal/config.cr index 3e57858..1c151c3 100644 --- a/src/kemal/config.cr +++ b/src/kemal/config.cr @@ -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)