bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. (#2109)

diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index d7867d1..9fe2a2f 100644
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -148,6 +148,7 @@
         terminates with a CancelledError exception (even if cancel()
         was not called).
         """
+        self._log_traceback = False
         if self.done():
             return False
         if self._fut_waiter is not None: