Created
November 12, 2009 05:35
-
-
Save sminnee/232629 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: sapphire/dev/Debug.php | |
| =================================================================== | |
| --- sapphire/dev/Debug.php (revision 91433) | |
| +++ sapphire/dev/Debug.php (working copy) | |
| @@ -398,6 +398,16 @@ | |
| * @todo Log detailed errors to full file | |
| */ | |
| protected static function log_error_if_necessary($errno, $errstr, $errfile, $errline, $errcontext, $errtype) { | |
| + if(class_exists('SS_Log')) { | |
| + SS_Log::log(array( | |
| + 'errno' => $errno, | |
| + 'errstr' => $errstr, | |
| + 'errfile' => $errfile, | |
| + 'errline' => $errline, | |
| + 'errcontext' => $errcontext | |
| + ), $errtype); | |
| + } | |
| + | |
| if(self::$log_errors_to) { | |
| $shortFile = "../" . self::$log_errors_to; | |
| $fullFile = $shortFile . '.full'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment