mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-28 14:05:05 +00:00
Remove uses of deprecated Logger.warn method
This commit is contained in:
parent
6d5013030b
commit
d00ac622bc
@ -229,7 +229,7 @@ class Loop(Generic[LF]):
|
|||||||
# Sometimes asyncio is cheeky and wakes up a few microseconds before our target
|
# Sometimes asyncio is cheeky and wakes up a few microseconds before our target
|
||||||
# time, causing it to repeat a run.
|
# time, causing it to repeat a run.
|
||||||
while self._is_explicit_time() and self._next_iteration <= self._last_iteration:
|
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. '
|
'Clock drift detected for task %s. Woke up at %s but needed to sleep until %s. '
|
||||||
'Sleeping until %s again to correct clock'
|
'Sleeping until %s again to correct clock'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user