From 55729dfc27cb0414cdbbdbc1d3fda19bb4ffcc18 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 23 Oct 2013 11:22:34 +0200 Subject: [PATCH] Removed deprecated log/email logic from Debug (fixes #2573) Was deprecated in 2009 with a682ab9c0e211167984b76790fb1458aae7ead7c, and removed in 2012 with 9eca2d676f9278ba528cb2ea6be4151703ed8fc2 --- dev/Debug.php | 41 +---------------------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/dev/Debug.php b/dev/Debug.php index 1d3f98f07..c17d68c82 100644 --- a/dev/Debug.php +++ b/dev/Debug.php @@ -23,19 +23,7 @@ * @subpackage dev */ class Debug { - - /** - * @config - * @var string Email address to send error notifications - */ - private static $send_errors_to; - - /** - * @config - * @var string Email address to send warning notifications - */ - private static $send_warnings_to; - + /** * @config * @var String indicating the file where errors are logged. @@ -262,18 +250,6 @@ class Debug { if(error_reporting() == 0) return; ini_set('display_errors', 0); - if(Config::inst()->get('Debug', 'send_warnings_to')) { - return self::emailError( - Config::inst()->get('Debug', 'send_warnings_to'), - $errno, - $errstr, - $errfile, - $errline, - $errcontext, - "Warning" - ); - } - // Send out the error details to the logger for writing SS_Log::log( array( @@ -286,10 +262,6 @@ class Debug { SS_Log::WARN ); - if(Config::inst()->get('Debug', 'log_errors_to')) { - self::log_error_if_necessary( $errno, $errstr, $errfile, $errline, $errcontext, "Warning"); - } - if(Director::isDev()) { return self::showError($errno, $errstr, $errfile, $errline, $errcontext, "Warning"); } else { @@ -310,13 +282,6 @@ class Debug { */ public static function fatalHandler($errno, $errstr, $errfile, $errline, $errcontext) { ini_set('display_errors', 0); - - if(Config::inst()->get('Debug', 'send_errors_to')) { - self::emailError( - Config::inst()->get('Debug', 'send_errors_to'), $errno, - $errstr, $errfile, $errline, $errcontext, "Error" - ); - } // Send out the error details to the logger for writing SS_Log::log( @@ -330,10 +295,6 @@ class Debug { SS_Log::ERR ); - if(Config::inst()->get('Debug', 'log_errors_to')) { - self::log_error_if_necessary( $errno, $errstr, $errfile, $errline, $errcontext, "Error"); - } - if(Director::isDev() || Director::is_cli()) { return self::showError($errno, $errstr, $errfile, $errline, $errcontext, "Error"); } else {