Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
7ce988fbd9 | |||
c81d20f018 | |||
289f35cf6b |
@ -226,8 +226,8 @@ class Canary {
|
||||
if ( ! CANARY_ENABLED ) {
|
||||
return;
|
||||
}
|
||||
if ( strlen( self::$debugLog ) > 50000 ) {
|
||||
self::$tempusDebugger->log( 'Error log too large, possible loop.' );
|
||||
if ( strlen( self::$debugLog ) > CANARY_DEBUG_LOG_LIMIT ) {
|
||||
self::$tempusLogger->addLog( 'log', 'Error log too large, possible loop.' );
|
||||
return;
|
||||
}
|
||||
if ( is_object( $data ) ) {
|
||||
|
@ -48,6 +48,9 @@ if ( ! defined( 'CANARY_SHOW_LINES' ) ) {
|
||||
if ( ! defined('CANARY_DEBUG_TO_CONSOLE' ) ) {
|
||||
define( 'CANARY_DEBUG_TO_CONSOLE', false );
|
||||
}
|
||||
if ( ! defined('CANARY_DEBUG_LOG_LIMIT' ) ) {
|
||||
define( 'CANARY_DEBUG_LOG_LIMIT', 500000 );
|
||||
}
|
||||
|
||||
# Tell the app all constants have been loaded.
|
||||
if ( ! defined('CANARY_CONSTANTS_LOADED' ) ) {
|
||||
|
2
logs/.gitignore
vendored
Normal file
2
logs/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
Reference in New Issue
Block a user