Skip to content

Commit 61f8454

Browse files
committed
logger.warn() is deprecated since 3.3
1 parent 0eb6b91 commit 61f8454

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudbot/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def exit_gracefully(signum, frame):
4949
_bot.loop.call_soon_threadsafe(
5050
lambda: asyncio.async(_bot.stop("Killed (Received SIGINT {})".format(signum)), loop=_bot.loop))
5151

52-
logger.warn("Bot received Signal Interrupt ({})".format(signum))
52+
logger.warning("Bot received Signal Interrupt ({})".format(signum))
5353

5454
# restore the original handler so if they do it again it triggers
5555
signal.signal(signal.SIGINT, original_sigint)

0 commit comments

Comments
 (0)