initialize JSONLogger as @log, so can use @log in each interface in Shced.
Signed-off-by: Wu Zhende wuzhende666@163.com --- src/lib/sched.cr | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/lib/sched.cr b/src/lib/sched.cr index 26ddd92..a9f893f 100644 --- a/src/lib/sched.cr +++ b/src/lib/sched.cr @@ -5,6 +5,7 @@ require "kemal" require "yaml"
require "./job" +require "./json_logger" require "./block_helper" require "./taskqueue_api" require "./remote_git_client" @@ -32,6 +33,8 @@ class Sched @block_helper = BlockHelper.new @rgc = RemoteGitClient.new @env = env + @log = JSONLogger.new + @log.set_env(env) end
def normalize_mac(mac : String)