From daa2a094f2b233d83cd20c18ee804552594b0cdc Mon Sep 17 00:00:00 2001 From: Elnath Date: Sun, 20 Jun 2021 21:10:09 +0200 Subject: [PATCH] Game: replaced logging.debug with logger.debug --- GameFiles/Game.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GameFiles/Game.py b/GameFiles/Game.py index 1e573a7..81e9491 100644 --- a/GameFiles/Game.py +++ b/GameFiles/Game.py @@ -340,7 +340,7 @@ class Game: async def start_vote(self, president: discord.Member, chancellor: discord.Member): if self.is_vote_running(): raise RuntimeError("A vote is already running") - logging.debug(f"[{self.guild.name}] Starting vote") + logger.debug(f"[{self.guild.name}] Starting vote") self.config["vote"] = { "president": president.id, @@ -354,7 +354,7 @@ class Game: @vote_running async def update_vote_message(self): - logging.debug(f"[{self.guild.name}] Updating vote message") + logger.debug(f"[{self.guild.name}] Updating vote message") president = self.config["vote"]["president"] chancellor = self.config["vote"]["chancellor"] message_content = [ @@ -392,7 +392,7 @@ class Game: @vote_running @save_on_success async def cast_vote(self, user: discord.Member, vote: Union[bool, None]): - logging.debug(f"[{self.guild.name}] Casting vote with value {vote} for user {user.display_name}") + logger.debug(f"[{self.guild.name}] Casting vote with value {vote} for user {user.display_name}") if not self.can_cast_votes(): raise RuntimeError("Votes can not be casted right now") self.config["vote"][str(user.id)] = vote @@ -403,7 +403,7 @@ class Game: @vote_running @save_on_success async def stop_vote(self): - logging.debug(f"[{self.guild.name}] Stopping the vote") + logger.debug(f"[{self.guild.name}] Stopping the vote") self.config["vote"]["can_cast_votes"] = False self.config["vote"]["revealed"] = True await self.update_vote_message()