Get log from env.cr's method
Signed-off-by: Wu Zhende wuzhende666@163.com --- src/lib/sched.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/sched.cr b/src/lib/sched.cr index abb8a33..6225ac2 100644 --- a/src/lib/sched.cr +++ b/src/lib/sched.cr @@ -5,7 +5,7 @@ require "kemal" require "yaml"
require "./job" -require "./json_logger" +require "./env" require "./block_helper" require "./taskqueue_api" require "./remote_git_client" @@ -34,7 +34,7 @@ class Sched @block_helper = BlockHelper.new @rgc = RemoteGitClient.new @env = env - @log = env.get("log").as(JSONLogger) + @log = env.log.as(JSONLogger) end
def normalize_mac(mac : String)