Update Logger configuration: adjust logging threshold for production environments, clarify comments regarding logging verbosity, and remove unnecessary log levels to optimize performance on shared hosting.

This commit is contained in:
2026-08-21 14:51:44 -04:00
parent efdd90da45
commit 68f725c798

View File

@ -34,12 +34,12 @@ class Logger extends BaseConfig
*
* array(1, 2, 3, 8) = Emergency, Alert, Critical, and Debug messages
*
* For a live site you'll usually enable Critical or higher (3) to be logged otherwise
* your log files will fill up very fast.
* CRM sur hébergement partagé : JAMAIS threshold 9 (debug).
* development + Radar/feed en boucle = logs qui peuvent saturer le quota.
*
* @var int|list<int>
*/
public $threshold = (ENVIRONMENT === 'production') ? 4 : 9;
public $threshold = 4;
/**
* --------------------------------------------------------------------------
@ -88,11 +88,8 @@ class Logger extends BaseConfig
'critical',
'alert',
'emergency',
'debug',
'error',
'info',
'notice',
'warning',
// pas debug/info/notice — trop verbeux sur cPanel
],
/*