Skip to content

Commit

Permalink
fix(template): Upgrade unrendered variable to a warning
Browse files Browse the repository at this point in the history
In #604, we held off on this being a warning.
Seems reasonable at this point to give it a try.

Fixes #862
  • Loading branch information
epage committed Feb 5, 2025
1 parent 83bfd4e commit 251e170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn render_var(mut template: String, var_name: &str, var_value: Option<&str>) ->
if let Some(var_value) = var_value {
template = template.replace(var_name, var_value);
} else if template.contains(var_name) {
log::debug!("Unrendered {} present in template {:?}", var_name, template);
log::warn!("Unrendered {} present in template {:?}", var_name, template);
}
template
}
Expand Down

0 comments on commit 251e170

Please sign in to comment.