Skip to content

Commit

Permalink
Move all "Synchronising" logs to debug
Browse files Browse the repository at this point in the history
Just more work on googleforgames#1218 to reduce logging verbosity.
  • Loading branch information
markmandel committed Feb 1, 2020
1 parent f9469ef commit 33a4439
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/fleetautoscalers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c *Controller) validationHandler(review admv1beta1.AdmissionReview) (admv1
// syncFleetAutoscaler scales the attached fleet and
// synchronizes the FleetAutoscaler CRD
func (c *Controller) syncFleetAutoscaler(key string) error {
c.loggerForFleetAutoscalerKey(key).Info("Synchronising")
c.loggerForFleetAutoscalerKey(key).Debug("Synchronising")

// Convert the namespace/name string into a distinct namespace and name
namespace, name, err := cache.SplitMetaNamespaceKey(key)
Expand Down
2 changes: 1 addition & 1 deletion pkg/fleets/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (c *Controller) gameServerSetEventHandler(obj interface{}) {
// syncFleet synchronised the fleet CRDs and configures/updates
// backing GameServerSets
func (c *Controller) syncFleet(key string) error {
c.loggerForFleetKey(key).Info("Synchronising")
c.loggerForFleetKey(key).Debug("Synchronising")

// Convert the namespace/name string into a distinct namespace and name
namespace, name, err := cache.SplitMetaNamespaceKey(key)
Expand Down
2 changes: 1 addition & 1 deletion pkg/gameservers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func (c *Controller) Run(workers int, stop <-chan struct{}) error {
// syncGameServer synchronises the Pods for the GameServers.
// and reacts to status changes that can occur through the client SDK
func (c *Controller) syncGameServer(key string) error {
c.loggerForGameServerKey(key).Info("Synchronising")
c.loggerForGameServerKey(key).Debug("Synchronising")

// Convert the namespace/name string into a distinct namespace and name
namespace, name, err := cache.SplitMetaNamespaceKey(key)
Expand Down
2 changes: 1 addition & 1 deletion pkg/gameservers/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (hc *HealthController) loggerForGameServer(gs *agonesv1.GameServer) *logrus

// syncGameServer sets the GameSerer to Unhealthy, if its state is Ready
func (hc *HealthController) syncGameServer(key string) error {
hc.loggerForGameServerKey(key).Info("Synchronising")
hc.loggerForGameServerKey(key).Debug("Synchronising")

// Convert the namespace/name string into a distinct namespace and name
namespace, name, err := cache.SplitMetaNamespaceKey(key)
Expand Down

0 comments on commit 33a4439

Please sign in to comment.