Skip to content

Commit

Permalink
Add 'Trace' to LogLevel in GameServer.Spec.SdkServer (#3995)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
0xaravindh and gongmax authored Oct 1, 2024
1 parent 98655de commit fc60900
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/fleet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions examples/gameserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions install/helm/agones/templates/crds/_gameserverspecschema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
6 changes: 6 additions & 0 deletions install/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/agones/v1/gameserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 2 additions & 0 deletions site/content/en/docs/Reference/gameserver.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fc60900

Please sign in to comment.