mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Rename the logger to plain "logger".
This commit is contained in:
parent
b795aa8547
commit
fc29e0f37e
15 changed files with 61 additions and 60 deletions
|
@ -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.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue