This commit is contained in:
Will McGugan
2022-10-12 13:45:30 +01:00
parent 713d7d921c
commit b593e6638c
2 changed files with 2 additions and 5 deletions

View File

@@ -75,8 +75,8 @@ class Logger:
_log(
self._group,
self._verbosity,
*args,
_textual_calling_frame=caller,
*args,
**kwargs,
)
except LoggerError:

View File

@@ -513,8 +513,8 @@ class App(Generic[ReturnType], DOMNode):
self,
group: LogGroup,
verbosity: LogVerbosity,
_textual_calling_frame: inspect.FrameInfo,
*objects: Any,
_textual_calling_frame: inspect.FrameInfo | None = None,
**kwargs,
) -> None:
"""Write to logs or devtools.
@@ -539,9 +539,6 @@ class App(Generic[ReturnType], DOMNode):
if verbosity.value > LogVerbosity.NORMAL.value and not self.devtools.verbose:
return
if not _textual_calling_frame:
_textual_calling_frame = inspect.stack(0)[1]
try:
if len(objects) == 1 and not kwargs:
self.devtools.log(