Skip to content

Commit

Permalink
[WIP] DiscordProgressBar: reduce logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Jul 23, 2023
1 parent 112c002 commit 7cff1cb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions discord_tron_client/classes/discord_progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,10 @@ async def update_progress_bar(self, step: int):
progress_text = "`" + f"[{bar}] {percent}% complete`"
we_have_another_fifth_of_progress = percent % 20
if we_have_another_fifth_of_progress == 0:
logging.debug(
f"Current document for websocket_msg: {self.websocket_msg.to_json()}"
)
# await self.discord_first_message.edit(content=progress_text)
logging.info("Sending progress bar to websocket!")
try:
# Update the websocket message template
self.websocket_msg.update(arguments={"message": progress_text + self.current_stage_msg})
to_send = self.websocket_msg.to_json()
logging.debug(f"Sending data: {to_send}")
self.websocket = AppConfig.get_websocket()
await self.send_update(
self.websocket, str(to_send)
Expand Down

0 comments on commit 7cff1cb

Please sign in to comment.