Skip to content

Instantly share code, notes, and snippets.

@sminnee
Created November 12, 2009 05:35
Show Gist options
  • Select an option

  • Save sminnee/232629 to your computer and use it in GitHub Desktop.

Select an option

Save sminnee/232629 to your computer and use it in GitHub Desktop.
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