Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change some log groups #3580

Merged
merged 1 commit into from
Nov 29, 2023
Merged
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
10 changes: 5 additions & 5 deletions src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,7 @@ async def _ready(self) -> None:
"""

ready_time = (perf_counter() - self._start_time) * 1000
self.log.info(f"ready in {ready_time:0.0f} milliseconds")
self.log.system(f"ready in {ready_time:0.0f} milliseconds")

async def take_screenshot() -> None:
"""Take a screenshot and exit."""
Expand Down Expand Up @@ -2677,7 +2677,7 @@ async def _dispatch_action(
"""
_rich_traceback_guard = True

log(
log.system(
"<action>",
namespace=namespace,
action_name=action_name,
Expand All @@ -2693,13 +2693,13 @@ async def _dispatch_action(
if callable(public_method):
await invoke(public_method, *params)
return True
log(
log.system(
f"<action> {action_name!r} has no target."
f" Could not find methods '_action_{action_name}' or 'action_{action_name}'"
)
except SkipAction:
# The action method raised this to explicitly not handle the action
log(f"<action> {action_name!r} skipped.")
log.system(f"<action> {action_name!r} skipped.")
return False

async def _broker_event(
Expand Down Expand Up @@ -2744,7 +2744,7 @@ async def _on_key(self, event: events.Key) -> None:
await self.dispatch_key(event)

async def _on_shutdown_request(self, event: events.ShutdownRequest) -> None:
log("shutdown request")
log.system("shutdown request")
await self._close_messages()

async def _on_resize(self, event: events.Resize) -> None:
Expand Down
Loading