Skip to content

Commit f3ed7a3

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
Fix trace message for function result
1 parent 240e58e commit f3ed7a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dsc_lib/src/parser/expressions.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ impl Expression {
113113
/// This function will return an error if the expression fails to execute.
114114
pub fn invoke(&self, function_dispatcher: &FunctionDispatcher, context: &Context) -> Result<Value, DscError> {
115115
let result = self.function.invoke(function_dispatcher, context)?;
116-
trace!("{}", t!("parser.expression.functionResult", result = result : {:?}));
116+
// TODO: check if `secret()` funciton and don't emit result
117+
let result_json = serde_json::to_string(&result)?;
118+
trace!("{}", t!("parser.expression.functionResult", results = result_json));
117119
if self.accessors.is_empty() {
118120
Ok(result)
119121
}

0 commit comments

Comments
 (0)