mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -10,7 +10,7 @@ import logging
|
|||
import traceback
|
||||
|
||||
from . import events
|
||||
from .log import asyncio_log
|
||||
from .log import logger
|
||||
|
||||
# States for Future.
|
||||
_PENDING = 'PENDING'
|
||||
|
@ -99,8 +99,8 @@ class _TracebackLogger:
|
|||
|
||||
def __del__(self):
|
||||
if self.tb:
|
||||
asyncio_log.error('Future/Task exception was never retrieved:\n%s',
|
||||
''.join(self.tb))
|
||||
logger.error('Future/Task exception was never retrieved:\n%s',
|
||||
''.join(self.tb))
|
||||
|
||||
|
||||
class Future:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue