From 7a00fc3c0db44fb4d6676c3dd5ac7ef0bdbdc5e7 Mon Sep 17 00:00:00 2001 From: mangalpalli Date: Wed, 12 Oct 2022 22:16:04 -0500 Subject: [PATCH] 2665 Log cleanup: Verbose error log on pod not yet running --- pkg/gameservers/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gameservers/controller.go b/pkg/gameservers/controller.go index a5131b9d4f..1d4b54b611 100644 --- a/pkg/gameservers/controller.go +++ b/pkg/gameservers/controller.go @@ -830,7 +830,7 @@ func (c *Controller) syncGameServerRequestReadyState(ctx context.Context, gs *ag // check to make sure this container is actually running. If there was a recent crash, the cache may // not yet have the newer, running container. if cs.State.Running == nil { - return nil, fmt.Errorf("game server container for GameServer %s in namespace %s is not currently running, try again", gsCopy.ObjectMeta.Name, gsCopy.ObjectMeta.Namespace) + return nil, workerqueue.NewDebugError(fmt.Errorf("game server container for GameServer %s in namespace %s is not currently running, try again", gsCopy.ObjectMeta.Name, gsCopy.ObjectMeta.Namespace)) } gsCopy.ObjectMeta.Annotations[agonesv1.GameServerReadyContainerIDAnnotation] = cs.ContainerID }