Repository navigation
Add the debug buffer limits to the logging and mailer config - #207
Conversation
logging.message.limit and mailer.transport_log_limit (framework #593), both 1000, so a project can see and change how many log messages and transport log lines are kept in memory.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
What changed
'message' => ['limit' => 1000]toshared/config/logging.php: in debug mode the web app keeps only the lastlimitlog messages in memory for the debug toolbar;0keeps every message.'transport_log_limit' => 1000toshared/config/mailer.php: the number of transport log lines the mailer keeps (the SMTP exchange in debug mode and the errors of failed sends);0keeps every line.Addedentry to the 3.1.0 changelog.Why
quantum-php/framework#593 (merged in quantum-php/framework#594) bounds the debug data kept in memory with these two settings, each read from its own package's config. Both default to
1000in the framework, so nothing breaks without them, but a project could not see or change them unless they are in its config files.Breaking changes
None. Config and changelog only; the values match the framework defaults.
Testing
Checked against the framework's
masterwith #594:vendor/bin/phpunit,composer cs:check,composer phpstanandcomposer rector:checkpass. CI runs them on PHP 8.0, 8.1 and 8.2.Summary by CodeRabbit
0to retain all applicable entries.