Skip to content

improve(runtime): add contextual logging to broad exception handlers#2406

Open
MuhamadRifansyah wants to merge 1 commit intoOpenMind:mainfrom
MuhamadRifansyah:improve/runtime-exception-context-logging
Open

improve(runtime): add contextual logging to broad exception handlers#2406
MuhamadRifansyah wants to merge 1 commit intoOpenMind:mainfrom
MuhamadRifansyah:improve/runtime-exception-context-logging

Conversation

@MuhamadRifansyah
Copy link
Contributor

Overview

This PR improves runtime diagnostics by adding contextual logging inside existing broad exception handlers. The goal is to make failures easier to understand and debug without modifying control flow or runtime behavior.

The changes focus on increasing observability and reducing situations where errors surface without sufficient context.

Changes

Added contextual logging to existing exception handling paths

Included additional runtime context (operation state and failure reason) in log messages

Preserved existing exception handling logic and execution flow

No functional or API changes

Impact

Improves debugging and operational visibility during runtime failures

Reduces ambiguity when diagnosing errors from logs

Helps identify root causes without altering behavior

Runtime behavior remains unchanged

Testing

ruff check passed for modified files

ruff format applied

pyright reports no new type errors

pytest test suite runs successfully

Additional Information

This PR is diagnostics-only and does not introduce new behavior

Existing exception types and control flow are preserved

Logging changes are limited to improving failure transparency

@MuhamadRifansyah MuhamadRifansyah requested review from a team as code owners February 21, 2026 13:15
@github-actions github-actions bot added robotics Robotics code changes python Python code labels Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python code robotics Robotics code changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant