Skip to content

Commit

Permalink
game: Smol logging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
okbrandon committed Oct 11, 2024
1 parent a5e9153 commit 5a1fd61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/api/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ async def ball_scored(self, event):
"e": "BALL_SCORED",
"d": {"player": event["player"]}
})
logger.info(f"[{self.__class__}] Ball scored event processed for player: {event['player']['id']}")
logger.info(f"[{self.__class__.__name__}] Ball scored event processed for player: {event['player']['id']}")

def reset_ball(self, match_state):
if self.match.flags & (1 << 1):
Expand All @@ -795,7 +795,7 @@ async def end_match(self, match_id, winner_id):
if self.match:
# Match already ended
if self.match.winnerID is not None or self.match.finishedAt is not None:
return
return None

self.match.winnerID = winner_id
self.match.finishedAt = timezone.now()
Expand Down

0 comments on commit 5a1fd61

Please sign in to comment.