Skip to content

fix: add DEBUG logging to silent error handlers#201

Merged
kokevidaurre merged 1 commit intomainfrom
solve/issue-56
Jan 25, 2026
Merged

fix: add DEBUG logging to silent error handlers#201
kokevidaurre merged 1 commit intomainfrom
solve/issue-56

Conversation

@kokevidaurre
Copy link
Contributor

Summary

  • Add DEBUG-enabled error logging to catch blocks that previously swallowed errors silently
  • Improves debuggability while maintaining graceful degradation in production

Changes

  • src/commands/sync.ts: Log git log failures when DEBUG is set
  • src/lib/db.ts: Log getDashboardHistory failures when DEBUG is set

Testing

  • npm run build passes
  • Manual testing with DEBUG=1 squads sync
  • Manual testing with DEBUG=1 squads dash

Closes #56


🤖 Generated with Agents Squads

Attribution Value
Agent cli/issue-solver
Squad cli
Trigger manual
Model claude-opus-4-5

Closes #56

Add DEBUG-enabled error logging to catch blocks that previously
swallowed errors silently. This helps with debugging while
maintaining graceful degradation in production.

Changes:
- sync.ts: Log git log failures when DEBUG is set
- db.ts: Log getDashboardHistory failures when DEBUG is set

Co-Authored-By: cli/issue-solver <cli-issue-solver@agents-squads.com>

Agent: cli/issue-solver
Squad: cli
Trigger: manual
Execution: 1769351836
Model: claude-opus-4-5
@kokevidaurre kokevidaurre merged commit 3c49343 into main Jan 25, 2026
5 checks passed
kokevidaurre added a commit that referenced this pull request Feb 20, 2026
Closes #56

Add DEBUG-enabled error logging to catch blocks that previously
swallowed errors silently. This helps with debugging while
maintaining graceful degradation in production.

Changes:
- sync.ts: Log git log failures when DEBUG is set
- db.ts: Log getDashboardHistory failures when DEBUG is set

Co-Authored-By: cli/issue-solver <cli-issue-solver@agents-squads.com>

Agent: cli/issue-solver
Squad: cli
Trigger: manual
Execution: 1769351836
Model: claude-opus-4-5

Co-authored-by: Squads Cloud Worker <cloud@agents-squads.com>
kokevidaurre added a commit that referenced this pull request Feb 20, 2026
Closes #56

Add DEBUG-enabled error logging to catch blocks that previously
swallowed errors silently. This helps with debugging while
maintaining graceful degradation in production.

Changes:
- sync.ts: Log git log failures when DEBUG is set
- db.ts: Log getDashboardHistory failures when DEBUG is set

Co-Authored-By: cli/issue-solver <cli-issue-solver@agents-squads.com>

Agent: cli/issue-solver
Squad: cli
Trigger: manual
Execution: 1769351836
Model: claude-opus-4-5

Co-authored-by: Squads Cloud Worker <cloud@agents-squads.com>
kokevidaurre added a commit that referenced this pull request Feb 20, 2026
Closes #56

Add DEBUG-enabled error logging to catch blocks that previously
swallowed errors silently. This helps with debugging while
maintaining graceful degradation in production.

Changes:
- sync.ts: Log git log failures when DEBUG is set
- db.ts: Log getDashboardHistory failures when DEBUG is set

Co-Authored-By: cli/issue-solver <cli-issue-solver@agents-squads.com>

Agent: cli/issue-solver
Squad: cli
Trigger: manual
Execution: 1769351836
Model: claude-opus-4-5

Co-authored-by: Squads Cloud Worker <cloud@agents-squads.com>
kokevidaurre added a commit that referenced this pull request Feb 20, 2026
Closes #56

Add DEBUG-enabled error logging to catch blocks that previously
swallowed errors silently. This helps with debugging while
maintaining graceful degradation in production.

Changes:
- sync.ts: Log git log failures when DEBUG is set
- db.ts: Log getDashboardHistory failures when DEBUG is set

Co-Authored-By: cli/issue-solver <cli-issue-solver@agents-squads.com>

Agent: cli/issue-solver
Squad: cli
Trigger: manual
Execution: 1769351836
Model: claude-opus-4-5

Co-authored-by: Squads Cloud Worker <cloud@agents-squads.com>
kokevidaurre added a commit that referenced this pull request Feb 20, 2026
Closes #56

Add DEBUG-enabled error logging to catch blocks that previously
swallowed errors silently. This helps with debugging while
maintaining graceful degradation in production.

Changes:
- sync.ts: Log git log failures when DEBUG is set
- db.ts: Log getDashboardHistory failures when DEBUG is set

Co-Authored-By: cli/issue-solver <cli-issue-solver@agents-squads.com>

Agent: cli/issue-solver
Squad: cli
Trigger: manual
Execution: 1769351836
Model: claude-opus-4-5

Co-authored-by: Squads Cloud Worker <cloud@agents-squads.com>
@kokevidaurre kokevidaurre deleted the solve/issue-56 branch February 20, 2026 04:08
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.

code: Silent error swallowing in critical paths

1 participant