Skip to content

Commit

Permalink
AWS: Show request data as plain text
Browse files Browse the repository at this point in the history
Previously, the data was logged as bytes, which required an additional converter to read them.
  • Loading branch information
MrSerth committed Sep 26, 2024
1 parent 636a30e commit 30f1b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/runner/aws_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (w *AWSFunctionWorkload) executeCommand(ctx context.Context, command []stri
Cmd: command,
Files: w.fs,
}
log.WithContext(ctx).WithField("request", data).Trace("Sending request to AWS")
log.WithContext(ctx).WithField("request", fmt.Sprintf("%q", data)).Trace("Sending request to AWS")
rawData, err := json.Marshal(data)
if err != nil {
exit <- ExitInfo{uint8(1), fmt.Errorf("cannot stingify aws function request: %w", err)}
Expand Down

0 comments on commit 30f1b71

Please sign in to comment.