Added little thing to debug

This commit is contained in:
Frisk 2024-08-29 18:15:41 +02:00
parent b37e4bb8b4
commit 4112187cd2

View file

@ -187,7 +187,7 @@ class MessageQueue:
return return
except (aiohttp.ServerConnectionError, aiohttp.ServerTimeoutError, asyncio.TimeoutError): except (aiohttp.ServerConnectionError, aiohttp.ServerTimeoutError, asyncio.TimeoutError):
# Retry on next Discord message sent attempt # Retry on next Discord message sent attempt
logger.debug(f"Received timeout or connection error when sending a Discord message for {msg.wiki.script_url if hasattr(msg, "wiki") else "PATCH OR DELETE MESSAGE"}.") logger.debug(f"Received timeout or connection error when sending a Discord message for {msg.wiki.script_url if hasattr(msg, "wiki") else "PATCH OR DELETE MESSAGE"}. Current delay: {self.discord_error_rate_tracker}")
self.track_discord_error_rate(1) self.track_discord_error_rate(1)
return return
except aiohttp.ClientError as e: except aiohttp.ClientError as e: