Skip to content

Commit 35ea75b

Browse files
authored
Merge pull request #1447 from SteveL-MSFT/output-trace
Add trace for output returned from resource
2 parents 8f2fa52 + e55024b commit 35ea75b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/dsc-lib/locales/en-us.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ noArgs = "No args to process"
183183
parseAsEnvVars = "Parsing input as environment variables"
184184
parseAsStdin = "Parsing input as stdin"
185185
noInput = "No input kind specified"
186-
verifyJson = "Verify JSON for '%{resource}'"
186+
verifyJson = "Verify JSON for '%{resource}': %{json}"
187187
validateJson = "Validating against JSON: %{json}"
188188
resourceInvalidJson = "Resource reported input JSON is not valid"
189189
invalidArrayKey = "Unsupported array value for key '%{key}'. Only string and number is supported."

lib/dsc-lib/src/dscresources/command_resource.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ fn get_command_input(input_kind: Option<&InputKind>, input: &str) -> Result<Comm
11051105
}
11061106

11071107
fn verify_json_from_manifest(resource: &DscResource, json: &str, target_resource: Option<&DscResource>) -> Result<(), DscError> {
1108-
debug!("{}", t!("dscresources.commandResource.verifyJson", resource = resource.type_name));
1108+
trace!("{}", t!("dscresources.commandResource.verifyJson", resource = resource.type_name, json = json));
11091109
let Some(manifest) = &resource.manifest else {
11101110
return Err(DscError::MissingManifest(resource.type_name.to_string()));
11111111
};

0 commit comments

Comments
 (0)