aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/bot.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 224f5f4e4..bf7f9c9df 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -112,6 +112,11 @@ class Bot(commands.Bot):
"The previous connector was not closed; it will remain open and be overwritten"
)
+ if self.redis_session and not self.redis_session.closed:
+ log.warning(
+ "The previous redis pool was not closed; it will remain open and be overwritten"
+ )
+
# Create the redis session
self.loop.create_task(self._create_redis_session())