Skip to content

Commit

Permalink
cloud output: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
yorugac committed Mar 25, 2022
1 parent 5ce336d commit d4ab53e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/k6_initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ func InitializeJobs(ctx context.Context, log logr.Logger, k6 *v1alpha1.K6, r *K6
var inspectOutput cloud.InspectOutput

if err := json.Unmarshal(buf.Bytes(), &inspectOutput); err != nil {
// this shouldn't normally happen to if it does, let's log output by default
log.Error(err, fmt.Sprintf("unable to marshal: `%s`", buf.String()))
return true, err
}

Expand Down

0 comments on commit d4ab53e

Please sign in to comment.