diff --git a/controllers/k6_initialize.go b/controllers/k6_initialize.go index 710c0608..c051b79f 100644 --- a/controllers/k6_initialize.go +++ b/controllers/k6_initialize.go @@ -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 }