Debug output for task processing

This commit is contained in:
southerntofu 2020-11-28 12:16:18 +01:00
parent d7cded3297
commit 70f476dcc9
1 changed files with 7 additions and 1 deletions

View File

@ -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