Skip to content

Commit

Permalink
fix: log string not bytes for patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mxab committed Mar 7, 2023
1 parent 238421e commit 0b1745f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admissionctrl/mutator/opa_json_patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (j *OpaJsonPatchMutator) Mutate(job *api.Job) (out *api.Job, warnings []err
if err != nil {
return nil, nil, err
}
j.logger.Debug("Got patch fom rule", "rule", ruleSet.Name(), "patch", patchJSON)
j.logger.Debug("Got patch fom rule", "rule", ruleSet.Name(), "patch", string(patchJSON))
jobJson, err := json.Marshal(job)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit 0b1745f

Please sign in to comment.