Skip to content

Remove stale debug console.log output (and the logger gate) - #76

Merged
super3 merged 1 commit into
mainfrom
claude/kind-ritchie-pr4kzv
Jun 29, 2026
Merged

Remove stale debug console.log output (and the logger gate)#76
super3 merged 1 commit into
mainfrom
claude/kind-ritchie-pr4kzv

Conversation

@super3

@super3 super3 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Follow-up to #74. Those console.log lines were old debugging chatter (📦 Repository context, 💾 … initializing, 🔄 Refreshing, etc.), so rather than keep them silenced behind a flag, this removes them outright.

What changed

  • Deleted every console.log in src/ (60 calls across 10 modules). console.error / console.warn are kept — those surface real problems. Empty if/else/catch wrappers left behind were collapsed.
  • Removed the logger.js gate added in Done-column "Archive all", coverage fix on repo switch, quieter console #74 (plus its test and the <script> tag in index.html). window.DASHBAN_DEBUG is gone with it — there's nothing left to gate.
  • Dropped dead debug-only code: the window.debugAboutCardStatus helper, and a double-click handler stub whose only body was a log (no edit behavior existed).
  • Updated the tests: removed the console.log assertions (~71 across 6 files), substituting behavioral assertions where a log was a test's only check, and deleted a few tests that existed solely to assert a log.

server.js's startup console.log is left as-is (server-side, goes to Railway logs — not browser noise).

Net ~380 fewer lines.

Testing

  • npm test965 passing.
  • npm run test:coverage100% statements/branches/functions/lines across all files.
  • npm run lint — 0 errors (7 pre-existing warnings unchanged).

🤖 Generated with Claude Code

https://claude.ai/code/session_019VQjXJyM3EZPd4joy3EwaB


Generated by Claude Code

The app emitted a lot of old debugging chatter via console.log (repository
context, module lifecycle, status polling, ...). It was silenced behind a
gate in #74, but it's dead debug code, so remove it outright:

- Delete every console.log call in src/ (console.error / console.warn,
  which surface real problems, are kept). Empty if/else/catch wrappers
  left behind are collapsed.
- Remove the now-unneeded src/logger.js gate (plus its test and the
  index.html script tag); window.DASHBAN_DEBUG goes with it.
- Drop the debug-only window.debugAboutCardStatus helper and a dead
  double-click stub whose only body was a log.
- Strip the corresponding console.log assertions from the tests,
  substituting behavioral assertions where a log was a test's only check.

Net ~380 fewer lines. Full suite green at 100% coverage; lint clean
(965 tests).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019VQjXJyM3EZPd4joy3EwaB
@railway-app
railway-app Bot temporarily deployed to dashban / dashban-pr-76 June 29, 2026 18:59 Destroyed
@super3
super3 merged commit a7b6a00 into main Jun 29, 2026
2 checks passed
@super3
super3 deleted the claude/kind-ritchie-pr4kzv branch June 29, 2026 19:26
@super3 super3 added the archive label Jun 30, 2026 — with Dashban
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants