From d00ac622bc5784ca47d42f37259dd224165b6e21 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 22 Aug 2025 19:52:12 -0400 Subject: [PATCH] Remove uses of deprecated Logger.warn method --- discord/ext/tasks/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py index 57f9e741b..760bc74bd 100644 --- a/discord/ext/tasks/__init__.py +++ b/discord/ext/tasks/__init__.py @@ -229,7 +229,7 @@ class Loop(Generic[LF]): # Sometimes asyncio is cheeky and wakes up a few microseconds before our target # time, causing it to repeat a run. while self._is_explicit_time() and self._next_iteration <= self._last_iteration: - _log.warn( + _log.warning( ( 'Clock drift detected for task %s. Woke up at %s but needed to sleep until %s. ' 'Sleeping until %s again to correct clock'