From fc60900b6f5fff6522a7944afef2ffcc3335f0b6 Mon Sep 17 00:00:00 2001 From: Aravindh K Date: Tue, 1 Oct 2024 06:36:56 +0530 Subject: [PATCH] Add 'Trace' to LogLevel in GameServer.Spec.SdkServer (#3995) * update_goversion_go.mod_go.sum * updated_build_dockerfile_goversion * updated_example_dockerfile_goversion * update_the_example_images_tag * Update the k8s error handler * Add 'Trace' to LogLevel --------- Co-authored-by: Mengye (Max) Gong <8364575+gongmax@users.noreply.github.com> --- examples/fleet.yaml | 1 + examples/gameserver.yaml | 1 + .../helm/agones/templates/crds/_gameserverspecschema.yaml | 2 ++ install/yaml/install.yaml | 6 ++++++ pkg/apis/agones/v1/gameserver.go | 2 ++ site/content/en/docs/Reference/gameserver.md | 2 ++ 6 files changed, 14 insertions(+) diff --git a/examples/fleet.yaml b/examples/fleet.yaml index 5749d8dc2e..36833c7d34 100644 --- a/examples/fleet.yaml +++ b/examples/fleet.yaml @@ -91,6 +91,7 @@ spec: # - "Info" (default) The SDK server will output all messages except for debug messages # - "Debug" The SDK server will output all messages including debug messages # - "Error" The SDK server will only output error messages + # - "Trace" The SDK server will output all messages, including detailed tracing information logLevel: Info # # [Stage:Beta] diff --git a/examples/gameserver.yaml b/examples/gameserver.yaml index 41e805d1af..e93ad06ec7 100644 --- a/examples/gameserver.yaml +++ b/examples/gameserver.yaml @@ -78,6 +78,7 @@ spec: # - "Info" (default) The SDK server will output all messages except for debug messages # - "Debug" The SDK server will output all messages including debug messages # - "Error" The SDK server will only output error messages + # - "Trace" The SDK server will output all messages, including detailed tracing information logLevel: Info # grpcPort and httpPort control what ports the sdkserver listens on. # Starting with Agones 1.2 the default grpcPort is 9357 and the default diff --git a/install/helm/agones/templates/crds/_gameserverspecschema.yaml b/install/helm/agones/templates/crds/_gameserverspecschema.yaml index 965e3382e3..9c979028eb 100644 --- a/install/helm/agones/templates/crds/_gameserverspecschema.yaml +++ b/install/helm/agones/templates/crds/_gameserverspecschema.yaml @@ -104,10 +104,12 @@ properties: - "Info" (default) The SDK server will output all messages except for debug messages - "Debug" The SDK server will output all messages including debug messages - "Error" The SDK server will only output error messages + - "Trace" The SDK server will output all messages, including detailed tracing information enum: - Error - Info - Debug + - Trace grpcPort: title: The port on which the SDK server binds the gRPC server to accept incoming connections description: | diff --git a/install/yaml/install.yaml b/install/yaml/install.yaml index 3ca513487a..439ceb6f35 100644 --- a/install/yaml/install.yaml +++ b/install/yaml/install.yaml @@ -5563,10 +5563,12 @@ spec: - "Info" (default) The SDK server will output all messages except for debug messages - "Debug" The SDK server will output all messages including debug messages - "Error" The SDK server will only output error messages + - "Trace" The SDK server will output all messages, including detailed tracing information enum: - Error - Info - Debug + - Trace grpcPort: title: The port on which the SDK server binds the gRPC server to accept incoming connections description: | @@ -11132,10 +11134,12 @@ spec: - "Info" (default) The SDK server will output all messages except for debug messages - "Debug" The SDK server will output all messages including debug messages - "Error" The SDK server will only output error messages + - "Trace" The SDK server will output all messages, including detailed tracing information enum: - Error - Info - Debug + - Trace grpcPort: title: The port on which the SDK server binds the gRPC server to accept incoming connections description: | @@ -16823,10 +16827,12 @@ spec: - "Info" (default) The SDK server will output all messages except for debug messages - "Debug" The SDK server will output all messages including debug messages - "Error" The SDK server will only output error messages + - "Trace" The SDK server will output all messages, including detailed tracing information enum: - Error - Info - Debug + - Trace grpcPort: title: The port on which the SDK server binds the gRPC server to accept incoming connections description: | diff --git a/pkg/apis/agones/v1/gameserver.go b/pkg/apis/agones/v1/gameserver.go index b2a2971979..b47c1492de 100644 --- a/pkg/apis/agones/v1/gameserver.go +++ b/pkg/apis/agones/v1/gameserver.go @@ -111,6 +111,8 @@ const ( SdkServerLogLevelDebug SdkServerLogLevel = "Debug" // SdkServerLogLevelError will cause the SDK server to only output error messages. SdkServerLogLevelError SdkServerLogLevel = "Error" + // SdkServerLogLevelTrace will cause the SDK server to output all messages, including detailed tracing information. + SdkServerLogLevelTrace SdkServerLogLevel = "Trace" ) const ( diff --git a/site/content/en/docs/Reference/gameserver.md b/site/content/en/docs/Reference/gameserver.md index 2d8d8e940d..cba45a5cf7 100644 --- a/site/content/en/docs/Reference/gameserver.md +++ b/site/content/en/docs/Reference/gameserver.md @@ -66,6 +66,7 @@ spec: # - "Info" (default) The SDK server will output all messages except for debug messages # - "Debug" The SDK server will output all messages including debug messages # - "Error" The SDK server will only output error messages + # - "Trace" The SDK server will output all messages, including detailed tracing information logLevel: Info # grpcPort and httpPort control what ports the sdkserver listens on. # Starting with Agones 1.2 the default grpcPort is 9357 and the default @@ -146,6 +147,7 @@ The `spec` field is the actual GameServer specification and it is composed as fo - "Info" (default) The SDK server will output all messages except for debug messages - "Debug" The SDK server will output all messages including debug messages - "Error" The SDK server will only output error messages + - "Trace" The SDK server will output all messages, including detailed tracing information - `grpcPort` the port that the SDK Server binds to for gRPC connections - `httpPort` the port that the SDK Server binds to for HTTP gRPC gateway connections - `players` (Alpha, behind "PlayerTracking" feature gate), sets this GameServer's initial player capacity