Skip to content

fix: log progress tracker refresh errors instead of silently swallowing - #3975

Open
Quratulain-bilal wants to merge 2 commits into
github:mainfrom
Quratulain-bilal:fix/console-refresh-callback-logging
Open

fix: log progress tracker refresh errors instead of silently swallowing#3975
Quratulain-bilal wants to merge 2 commits into
github:mainfrom
Quratulain-bilal:fix/console-refresh-callback-logging

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

The bare except Exception: pass in StepTracker._maybe_refresh() completely hid rendering bugs in the Rich progress display.

Fix

Now logs at DEBUG level with full traceback for diagnostics.

The bare 'except Exception: pass' in StepTracker._maybe_refresh()
completely hid rendering bugs in the Rich progress display. Now logs
at DEBUG level with full traceback for diagnostics.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds DEBUG-level traceback logging for suppressed progress refresh failures.

Changes:

  • Introduces a module logger.
  • Logs refresh callback exceptions with traceback details.
Show a summary per file
File Description
src/specify_cli/_console.py Logs StepTracker refresh failures for diagnostics.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread src/specify_cli/_console.py
- Test that _maybe_refresh logs exceptions instead of silently swallowing
- Verify diagnostic message and traceback are recorded in DEBUG logs
- Confirm tracker update completes normally despite refresh callback failure

Requested by Copilot in PR github#3975
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants