Skip to content

Conversation

@aprendendofelipe
Copy link

Reduces log verbosity in tests and server error handling to improve signal-to-noise ratio during development and CI runs.

Changes

  • Tests: Route GITHUB_OUTPUT to a temp file and clean it up after all tests to avoid workspace clutter.
  • Server error logging: Downgrade 4xx client errors to console.log; reserve console.error for 5xx and anomalous cases.
  • Error context: Add statusCode and matchedRoute to error log prefix for clearer diagnostics.
  • Remove noisy plugin: Delete runtime config init plugin that logged on every request and often failed; Nitro handles config initialization automatically.

Impact

No functional changes; purely log hygiene improvements for cleaner CI output and easier debugging.

- Include method, path, matched route, and status code in error prefix for clearer diagnostics
- Use console.log for 400–499 to reduce noise;
- Reserve console.error for 5xx and anomalous cases.
Delete request hook that logged on every request and often failed with "Failed to initialize runtime config".
Nitro handles runtime config initialization automatically, making this plugin redundant and noisy.
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