Commit cda794b7 authored by refcell.eth's avatar refcell.eth Committed by GitHub

Merge pull request #8199 from ethereum-optimism/aj/fix-logs

op-challenger: Log game address instead of struct
parents c3e3d325 0f4f4ce9
...@@ -103,7 +103,7 @@ func (c *coordinator) createJob(game types.GameMetadata) (*job, error) { ...@@ -103,7 +103,7 @@ func (c *coordinator) createJob(game types.GameMetadata) (*job, error) {
c.states[game.Proxy] = state c.states[game.Proxy] = state
} }
if state.inflight { if state.inflight {
c.logger.Debug("Not rescheduling already in-flight game", "game", game) c.logger.Debug("Not rescheduling already in-flight game", "game", game.Proxy)
return nil, nil return nil, nil
} }
// Create the player separately to the state so we retry creating it if it fails on the first attempt. // Create the player separately to the state so we retry creating it if it fails on the first attempt.
...@@ -117,7 +117,7 @@ func (c *coordinator) createJob(game types.GameMetadata) (*job, error) { ...@@ -117,7 +117,7 @@ func (c *coordinator) createJob(game types.GameMetadata) (*job, error) {
} }
state.inflight = true state.inflight = true
if state.status != types.GameStatusInProgress { if state.status != types.GameStatusInProgress {
c.logger.Debug("Not rescheduling resolved game", "game", game, "status", state.status) c.logger.Debug("Not rescheduling resolved game", "game", game.Proxy, "status", state.status)
return nil, nil return nil, nil
} }
return &job{addr: game.Proxy, player: state.player, status: state.status}, nil return &job{addr: game.Proxy, player: state.player, status: state.status}, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment