Skip to content

Commit

Permalink
Get the gs state correctly in log (googleforgames#3385)
Browse files Browse the repository at this point in the history
  • Loading branch information
gongmax authored Sep 19, 2023
1 parent 73bf077 commit ecddebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sdkserver/sdkserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func (s *SDKServer) updateState(ctx context.Context) error {

gs, err = gameServers.Update(ctx, gsCopy, metav1.UpdateOptions{})
if err != nil {
return errors.Wrapf(err, "could not update GameServer %s/%s to state %s", s.namespace, s.gameServerName, gs.Status.State)
return errors.Wrapf(err, "could not update GameServer %s/%s to state %s", s.namespace, s.gameServerName, gsCopy.Status.State)
}

message := "SDK state change"
Expand Down

0 comments on commit ecddebe

Please sign in to comment.