mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
use correct name
This commit is contained in:
parent
ba4d480776
commit
c4d39b2507
1 changed files with 1 additions and 1 deletions
|
@ -1782,7 +1782,7 @@ handler type) for messages from different processes to get mixed up.
|
|||
Below is an example session with logging turned on::
|
||||
|
||||
>>> import multiprocessing, logging
|
||||
>>> logger = multiprocessing.getLogger()
|
||||
>>> logger = multiprocessing.get_logger()
|
||||
>>> logger.setLevel(logging.INFO)
|
||||
>>> logger.warning('doomed')
|
||||
[WARNING/MainProcess] doomed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue