diff options
| author | Xu Song <xusong.vip@gmail.com> | 2023-12-24 10:04:12 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-24 10:04:12 (GMT) |
| commit | ce77ee50358c0668eda5078f50b38f0770a370ab (patch) | |
| tree | 9ecaa6d07ed88896e646d7362c3e9bd4feafd322 /Lib/multiprocessing/util.py | |
| parent | 08398631a0298dcf785ee7bd0e26c7844823ce59 (diff) | |
| download | cpython-ce77ee50358c0668eda5078f50b38f0770a370ab.zip cpython-ce77ee50358c0668eda5078f50b38f0770a370ab.tar.gz cpython-ce77ee50358c0668eda5078f50b38f0770a370ab.tar.bz2 | |
gh-113421: Fix multiprocessing logger for "%(filename)s" (GH-113423)
Diffstat (limited to 'Lib/multiprocessing/util.py')
| -rw-r--r-- | Lib/multiprocessing/util.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/multiprocessing/util.py b/Lib/multiprocessing/util.py index 28c77df..3287185 100644 --- a/Lib/multiprocessing/util.py +++ b/Lib/multiprocessing/util.py @@ -43,19 +43,19 @@ _log_to_stderr = False def sub_debug(msg, *args): if _logger: - _logger.log(SUBDEBUG, msg, *args) + _logger.log(SUBDEBUG, msg, *args, stacklevel=2) def debug(msg, *args): if _logger: - _logger.log(DEBUG, msg, *args) + _logger.log(DEBUG, msg, *args, stacklevel=2) def info(msg, *args): if _logger: - _logger.log(INFO, msg, *args) + _logger.log(INFO, msg, *args, stacklevel=2) def sub_warning(msg, *args): if _logger: - _logger.log(SUBWARNING, msg, *args) + _logger.log(SUBWARNING, msg, *args, stacklevel=2) def get_logger(): ''' |
