Skip to content

fix(api): replace debug console.log with console.warn in server handlers#1097

Merged
koala73 merged 1 commit intomainfrom
fix/console-log-cleanup-v2
Mar 6, 2026
Merged

fix(api): replace debug console.log with console.warn in server handlers#1097
koala73 merged 1 commit intomainfrom
fix/console-log-cleanup-v2

Conversation

@koala73
Copy link
Owner

@koala73 koala73 commented Mar 6, 2026

Summary

Supersedes #827 by @NewCoder3294 — rebased on current main which added seed-based paths with additional console.log calls.

All 21 console.log calls in server/worldmonitor/ cleaned up:

  • Upgraded to console.warn (8): missing API keys, stale fallbacks, operational summaries, NOTAM closures detected
  • Removed (13): debug traces (fetch start, per-airport stats, cache hits, routine totals, "no closures found")
  • Dead code removed: unused cancelled/delayed variables in fetchSingleAirport after their log was removed

Zero console.log remaining in server/.

Files changed (3)

  • server/worldmonitor/aviation/v1/_shared.ts
  • server/worldmonitor/aviation/v1/list-airport-delays.ts
  • server/worldmonitor/military/v1/get-usni-fleet-report.ts

Co-authored-by: Nicolas Dos Santos NewCoder3294@users.noreply.github.com

Closes #827

Test plan

  • tsc --noEmit passes
  • Zero console.log in server/worldmonitor/
  • Verify aviation and military endpoints still function with expected warn-level output

Supersedes #827 (rebased on current main with seed-based paths).
All 21 console.log calls in server/worldmonitor/ either upgraded to
console.warn (missing API keys, stale fallbacks, operational summaries,
closures detected) or removed (debug traces, cache hits, per-item noise).
Removes dead code block in fetchSingleAirport after its log was removed.

Co-authored-by: Nicolas Dos Santos <NewCoder3294@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Mar 6, 2026 5:30am

Request Review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@koala73 koala73 merged commit 978acb1 into main Mar 6, 2026
3 checks passed
aldoyh pushed a commit to aldoyh/worldmonitor that referenced this pull request Mar 6, 2026
…ers (koala73#1097)

Supersedes koala73#827 (rebased on current main with seed-based paths).
All 21 console.log calls in server/worldmonitor/ either upgraded to
console.warn (missing API keys, stale fallbacks, operational summaries,
closures detected) or removed (debug traces, cache hits, per-item noise).
Removes dead code block in fetchSingleAirport after its log was removed.

Co-authored-by: Nicolas Dos Santos <NewCoder3294@users.noreply.github.com>
@koala73 koala73 deleted the fix/console-log-cleanup-v2 branch March 8, 2026 19:30
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.

1 participant