From 999a1342216f07bda9bc3cb737466e3ff832ea98 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Tue, 2 Mar 2021 17:29:11 +0100 Subject: [PATCH] restored log file path --- src/do.cr | 1 - src/main.cr | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/do.cr b/src/do.cr index 7e320e8..84477c5 100644 --- a/src/do.cr +++ b/src/do.cr @@ -1,6 +1,5 @@ class Baguette::Context - #class_property logfile_path = "#{@working_directory}/#{@recipe.not_nil!.working_uuid}.log" class_property logfile_path = "/tmp/package-create.log" class_property no_logfile = false end diff --git a/src/main.cr b/src/main.cr index 3d84f4e..327ea29 100644 --- a/src/main.cr +++ b/src/main.cr @@ -173,6 +173,9 @@ begin recipes.each do |recipe| latest_build_dir = recipe.building_directory + Baguette::Context.logfile_path = "#{context.working_directory}/" + Baguette::Context.logfile_path += "#{@recipe.working_uuid}.log" + Baguette::Log.title recipe.name recipe.download