improve line limit and add config for it

This commit is contained in:
Joey Kimsey
2024-08-10 14:58:57 -04:00
parent c81d20f018
commit 7ce988fbd9
2 changed files with 4 additions and 1 deletions

View File

@ -226,7 +226,7 @@ class Canary {
if ( ! CANARY_ENABLED ) {
return;
}
if ( strlen( self::$debugLog ) > 50000 ) {
if ( strlen( self::$debugLog ) > CANARY_DEBUG_LOG_LIMIT ) {
self::$tempusLogger->addLog( 'log', 'Error log too large, possible loop.' );
return;
}