summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-06-15 11:53:29 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-06-15 11:53:29 +0200
commitae399f9b4c2da926466d21ca00786056158eb455 (patch)
tree99965251176001e854c9b818a743de9c2d0fa795
parent8a3114b773372bd5f2ddce8af516006d567441a0 (diff)
Debug-Print all package details before renderingtry-update-handlebars
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r--src/package/script.rs6
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)