From 70f476dcc9b9edac52286e431fb7bbc33c5e132e Mon Sep 17 00:00:00 2001 From: southerntofu Date: Sat, 28 Nov 2020 12:16:18 +0100 Subject: [PATCH] Debug output for task processing --- src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 46cd40b..9e3ae17 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,6 +45,12 @@ fn main() -> Result<(), std::io::Error> { } }; + for t in &tasks { + let mut context = context.clone(); + context.insert("$i18n_task", t.name.as_str()); + log::debug("found_task", Some(&context)); + } + let (config_folder, ignored_tasks) = task::config(&basedir); set_var("GITBUILDCONF", &config_folder); context.insert("$i18n_config", config_folder.to_str().unwrap()); @@ -58,7 +64,7 @@ fn main() -> Result<(), std::io::Error> { for task in &tasks { let mut context = context.clone(); context.insert("$i18n_task", task.name.as_str()); - log::debug("found_task", Some(&context)); + log::debug("start_proc", Some(&context)); if ignored_tasks.contains(&task.name) { // Skip task which has CONFIG/task.ignore