From 5a1fd619e98d7de7556e521274820fafe5fc239e Mon Sep 17 00:00:00 2001 From: Brandon <103316367+okbrandon@users.noreply.github.com> Date: Fri, 11 Oct 2024 19:29:37 +0200 Subject: [PATCH] game: Smol logging issue --- backend/api/consumers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/api/consumers.py b/backend/api/consumers.py index 0b20d523..a362b757 100644 --- a/backend/api/consumers.py +++ b/backend/api/consumers.py @@ -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): @@ -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()