diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-15 11:53:29 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-16 09:31:11 +0200 |
commit | 8c9cc6ea4e8724e3ca2809bcf19bb475835662d4 (patch) | |
tree | eb9ca0182b0b638ac7ee015d8a7c975e471b57a1 | |
parent | ed7e1f4e02c300f7d970b6e9977b72d59b72a1e4 (diff) |
Debug-Print all package details before rendering
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r-- | src/package/script.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/package/script.rs b/src/package/script.rs index 30b198f..a0f1527 100644 --- a/src/package/script.rs +++ b/src/package/script.rs @@ -232,6 +232,12 @@ impl<'a> ScriptBuilder<'a> { hb.register_helper("join", Box::new(JoinHelper)); hb.register_helper("joinwith", Box::new(JoinWithHelper)); hb.set_strict_mode(strict_mode); + + #[cfg(debug_assertions)] + { + trace!("Rendering Package: {:?}", package.debug_details()); + } + hb.render("script", package) .with_context(|| anyhow!("Rendering script for package {} {} failed", package.name(), package.version())) .map_err(Error::from) |