Skip to content

Commit 03e478a

Browse files
committed
drop debuggging
Once the previous commit gets approved we can drop these debugging statements.
1 parent 2780a8b commit 03e478a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

rust/src/treefile.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2848,9 +2848,7 @@ fn process_base_vars(
28482848
output: &mut HashMap<String, String>,
28492849
) -> Result<()> {
28502850
let mut unprocessed: HashMap<String, String> = Default::default();
2851-
eprintln!("Iterating over vars");
28522851
for (key, value) in input {
2853-
eprintln!("Found {key}={value}");
28542852
let var: HashMap<String, String> = [(key.clone(), value.clone())].iter().cloned().collect();
28552853
if envsubst::validate_vars(&var).is_ok() {
28562854
output.insert(key.clone(), value.clone());
@@ -2864,9 +2862,7 @@ fn process_base_vars(
28642862
for (key, value) in unprocessed {
28652863
let mut v = Some(value);
28662864
substitute_string_option(&output, &mut v)?;
2867-
let value = v.unwrap();
2868-
eprintln!("Now {key}={value}");
2869-
output.insert(key.clone(), value.clone());
2865+
output.insert(key.clone(), v.unwrap().clone());
28702866
}
28712867
// Now make sure all vars have been substituted and are compliant.
28722868
envsubst::validate_vars(&output)?;
@@ -2911,10 +2907,6 @@ impl TreeComposeConfig {
29112907
.collect();
29122908
process_base_vars(&input_base_vars, &mut substvars)?;
29132909

2914-
for (key, value) in &substvars {
2915-
eprintln!("postprocess: {key}={value}");
2916-
}
2917-
29182910
substitute_string_option(&substvars, &mut self.base.treeref)?;
29192911
if let Some(ref mut rojig) = self.base.rojig {
29202912
substitute_string(&substvars, &mut rojig.name)?;

0 commit comments

Comments
 (0)