Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
logging: remove raw object from logs (#2326)
Browse files Browse the repository at this point in the history
Signed-off-by: Sanya Kochhar <kochhars@microsoft.com>
  • Loading branch information
SanyaKochhar authored Jan 20, 2021
1 parent 8f85d4f commit 16b7727
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/injector/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ func (wh *mutatingWebhook) mutate(req *v1beta1.AdmissionRequest, proxyUUID uuid.
log.Error().Err(err).Msgf("Error unmarshaling request to pod with UUID %s in namespace %s", proxyUUID, req.Namespace)
return webhook.AdmissionError(err)
}
log.Trace().Msgf("Mutation request: (new object: %v) (old object: %v)", string(req.Object.Raw), string(req.OldObject.Raw))

// Start building the response
resp := &v1beta1.AdmissionResponse{
Expand Down

0 comments on commit 16b7727

Please sign in to comment.