Skip to content

Honor APP_DEBUG to toggle Slim error detail output#60

Merged
Kvnbbg merged 1 commit intomainfrom
techandstream/apply-lightweight-changes-and-fix/2026-02-04/09-10-16
Feb 4, 2026
Merged

Honor APP_DEBUG to toggle Slim error detail output#60
Kvnbbg merged 1 commit intomainfrom
techandstream/apply-lightweight-changes-and-fix/2026-02-04/09-10-16

Conversation

@Kvnbbg
Copy link
Copy Markdown
Owner

@Kvnbbg Kvnbbg commented Feb 4, 2026

Motivation

  • Prevent accidental leakage of exception details in production by making the Slim error middleware respect the APP_DEBUG environment variable.

Description

  • Read APP_DEBUG via getenv and normalize it with filter_var(..., FILTER_VALIDATE_BOOLEAN) into $displayErrorDetails.
  • Pass $displayErrorDetails to $app->addErrorMiddleware so error details are shown only when APP_DEBUG is true and update the related comment.

Testing

  • No automated tests were run for this lightweight change.

Codex Task

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 4, 2026

Deployment failed with the following error:

Hobby accounts are limited to daily cron jobs. This cron expression (0 * * * *) would run more than once per day. Upgrade to the Pro plan to unlock all Cron Jobs features on Vercel.

Learn More: https://vercel.link/3Fpeeb1

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Kvnbbg Kvnbbg merged commit a642094 into main Feb 4, 2026
3 of 8 checks passed
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.

1 participant