Skip to content

Commit 9e18242

Browse files
markmandelRobert Bailey
andcommitted
Webhooks: Move "running" logging to Debug (agones-dev#1249)
Also took the liberty of removing the Info logging of the GameServer webhook entire patch logging, since it was likely leftover from issue debugging. Co-authored-by: Robert Bailey <robertbailey@google.com>
1 parent 2ec5139 commit 9e18242

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

pkg/gameservers/controller.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,6 @@ func (c *Controller) creationMutationHandler(review admv1beta1.AdmissionReview)
239239
return review, errors.Wrapf(err, "error creating json for patch for GameServer %s", gs.ObjectMeta.Name)
240240
}
241241

242-
c.loggerForGameServer(gs).WithField("patch", string(json)).Infof("patch created!")
243-
244242
pt := admv1beta1.PatchTypeJSONPatch
245243
review.Response.PatchType = &pt
246244
review.Response.Patch = json

pkg/util/webhooks/webhooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (wh *WebHook) AddHandler(path string, gk schema.GroupKind, op v1beta1.Opera
7373

7474
// handle Handles http requests for webhooks
7575
func (wh *WebHook) handle(path string, w http.ResponseWriter, r *http.Request) error { // nolint: interfacer
76-
wh.logger.WithField("path", path).Info("running webhook")
76+
wh.logger.WithField("path", path).Debug("running webhook")
7777

7878
var review v1beta1.AdmissionReview
7979
err := json.NewDecoder(r.Body).Decode(&review)

0 commit comments

Comments
 (0)