Remove uses of deprecated Logger.warn method

This commit is contained in:
Rapptz 2025-08-22 19:52:12 -04:00
parent 6d5013030b
commit d00ac622bc

View File

@ -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'