From 0498801b0d3a98df7b4baa9a4d4d4943496630a7 Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Sun, 17 Jan 2016 14:22:47 +0200 Subject: [PATCH] Initialize logger in config --- src/kemal/config.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kemal/config.cr b/src/kemal/config.cr index 6a62ae1..0ede00f 100644 --- a/src/kemal/config.cr +++ b/src/kemal/config.cr @@ -12,6 +12,7 @@ module Kemal @env = "development" unless @env @public_folder = "./public" @logging = true + @logger = nil end def scheme @@ -23,7 +24,7 @@ module Kemal end def logger - @logger + @logger.not_nil! end def logger=(logger)