From 497be35d5fe06c3e0023fa08e75c7d883a6409ed Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 25 May 2017 21:30:22 -0400 Subject: [PATCH] Log when a KeyboardInterrupt is met in Client.run --- discord/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/client.py b/discord/client.py index 1309fa8bb..399cc7b45 100644 --- a/discord/client.py +++ b/discord/client.py @@ -537,7 +537,7 @@ class Client: try: loop.run_forever() except KeyboardInterrupt: - pass + log.info('Received signal to terminate bot and event loop.') finally: task.remove_done_callback(stop_loop_on_finish) if is_windows: