Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup Patch Sidecar Logging #3973

Merged
merged 1 commit into from
Sep 12, 2024

Commits on Sep 12, 2024

  1. Cleanup Patch Sidecar Logging

    Missed this little of nuance in code review when moving to Patch with
    the SDK Sidecar - in that a Patch operation doesn't return a Conflict
    error type/status value if it fails, so every time it does, the Agones
    sidecar will log it as an error on production installs.
    
    So this cleaned up a few things:
    
    * renamed "debugError" type to "traceError" type, since we only log it
    under Trace, not Debug.
    * if `patchGameServer` fails under the error `IsInvalid`, wrap it in a
    TraceError so it doesn't show up in prod.
    * Wrapped the error with `errors` context, such that if the patch does
    fail, it's far easier now to work out where it failed.
    
    Closes googleforgames#3967
    markmandel committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    12ec087 View commit details
    Browse the repository at this point in the history