Skip to content

Commit 772a742

Browse files
authored
Fix multiprocessing logger
1 parent c3f92f6 commit 772a742

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/multiprocessing/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@
4343

4444
def sub_debug(msg, *args):
4545
if _logger:
46-
_logger.log(SUBDEBUG, msg, *args)
46+
_logger.log(SUBDEBUG, msg, *args, stacklevel=2)
4747

4848
def debug(msg, *args):
4949
if _logger:
50-
_logger.log(DEBUG, msg, *args)
50+
_logger.log(DEBUG, msg, *args, stacklevel=2)
5151

5252
def info(msg, *args):
5353
if _logger:
54-
_logger.log(INFO, msg, *args)
54+
_logger.log(INFO, msg, *args, stacklevel=2)
5555

5656
def sub_warning(msg, *args):
5757
if _logger:
58-
_logger.log(SUBWARNING, msg, *args)
58+
_logger.log(SUBWARNING, msg, *args, stacklevel=2)
5959

6060
def get_logger():
6161
'''

0 commit comments

Comments
 (0)