mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Ensure filename is passed to devtools from __init__
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import inspect
|
||||
from typing import Any
|
||||
|
||||
from rich.console import RenderableType
|
||||
@@ -9,7 +10,9 @@ def log(*args: object, verbosity: int = 0, **kwargs) -> None:
|
||||
from ._context import active_app
|
||||
|
||||
app = active_app.get()
|
||||
app.log(*args, verbosity=verbosity, **kwargs)
|
||||
|
||||
caller = inspect.stack()[1]
|
||||
app.log(*args, verbosity=verbosity, caller=caller, **kwargs)
|
||||
|
||||
|
||||
def panic(*args: RenderableType) -> None:
|
||||
|
||||
Reference in New Issue
Block a user