Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Lib/logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,7 @@ def __init__(self, name, level=NOTSET):
self.handlers = []
self.disabled = False
self._cache = {}
self.use_qualname = False

def setLevel(self, level):
"""
Expand Down Expand Up @@ -1620,7 +1621,8 @@ def findCaller(self, stack_info=False, stacklevel=1):
sinfo = sio.getvalue()
if sinfo[-1] == '\n':
sinfo = sinfo[:-1]
return co.co_filename, f.f_lineno, co.co_name, sinfo
return (co.co_filename, f.f_lineno,
co.co_qualname if self.use_qualname else co.co_name, sinfo)

def makeRecord(self, name, level, fn, lno, msg, args, exc_info,
func=None, extra=None, sinfo=None):
Expand Down
Loading