Rename the logger to plain "logger".

This commit is contained in:
Guido van Rossum 2013-10-17 15:39:45 -07:00
parent b795aa8547
commit fc29e0f37e
15 changed files with 61 additions and 60 deletions

View file

@ -12,7 +12,7 @@ import sys
import threading
import socket
from .log import asyncio_log
from .log import logger
class Handle:
@ -36,8 +36,8 @@ class Handle:
try:
self._callback(*self._args)
except Exception:
asyncio_log.exception('Exception in callback %s %r',
self._callback, self._args)
logger.exception('Exception in callback %s %r',
self._callback, self._args)
self = None # Needed to break cycles when an exception occurs.