Skip to content

Commit

Permalink
Camelcase plaerID in logs
Browse files Browse the repository at this point in the history
To be consistent with other logs, as they seem to be using `playerID`
instead of `PlayerID`.
  • Loading branch information
mthssdrbrg committed Apr 2, 2021
1 parent 5cf6a02 commit 6d848ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sdkserver/sdkserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func (s *SDKServer) PlayerConnect(ctx context.Context, id *alpha.PlayerID) (*alp
if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) {
return &alpha.Bool{Bool: false}, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking)
}
s.logger.WithField("PlayerId", id.PlayerID).Debug("Player Connected")
s.logger.WithField("playerId", id.PlayerID).Debug("Player Connected")

s.gsUpdateMutex.Lock()
defer s.gsUpdateMutex.Unlock()
Expand Down Expand Up @@ -602,7 +602,7 @@ func (s *SDKServer) PlayerDisconnect(ctx context.Context, id *alpha.PlayerID) (*
if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) {
return &alpha.Bool{Bool: false}, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking)
}
s.logger.WithField("PlayerId", id.PlayerID).Debug("Player Disconnected")
s.logger.WithField("playerId", id.PlayerID).Debug("Player Disconnected")

s.gsUpdateMutex.Lock()
defer s.gsUpdateMutex.Unlock()
Expand Down

0 comments on commit 6d848ca

Please sign in to comment.