Skip to content

Commit 3df1a24

Browse files
Avoid logging raw byte slice
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
1 parent 1e33f5f commit 3df1a24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/applicationsnapshot/input.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ func readSnapshotSource(input []byte) (app.SnapshotSpec, error) {
187187

188188
// Since JSON is a subset of YAML, yaml.Unmarshal can be used directly.
189189
if err := yaml.Unmarshal(input, &v); err != nil {
190-
log.Debugf("Problem parsing application snapshot from file %s", input)
191-
return app.SnapshotSpec{}, fmt.Errorf("unable to parse Snapshot specification from %s: %w", input, err)
190+
log.Debugf("Problem parsing application snapshot from input: %v", err)
191+
return app.SnapshotSpec{}, fmt.Errorf("unable to parse Snapshot specification from input: %w", err)
192192
}
193193

194194
// Extract the "spec" key from YAML, if present, to use as the snapshot.

0 commit comments

Comments
 (0)