From 387913b6f70a17941344d8065d38246b2b2bbc16 Mon Sep 17 00:00:00 2001 From: Jason Clemons Date: Sat, 4 Jan 2014 19:20:55 -0500 Subject: [PATCH] ! Removed custom error logging Signed-off-by: Jason Clemons --- includes/bootloader.php | 6 ------ includes/classes/base.class.php | 15 --------------- includes/kernel.php | 1 - 3 files changed, 22 deletions(-) diff --git a/includes/bootloader.php b/includes/bootloader.php index 82db0e6..1b566cf 100644 --- a/includes/bootloader.php +++ b/includes/bootloader.php @@ -14,11 +14,6 @@ include('classes/cache.class.php'); include('classes/base.class.php'); -/*! - * Set error logging level. Default is E_ALL - */ -set_error_handler('save_error', E_ALL); - /*! * Define the caching engine to be used. * Supports: apc, memcached, xcache, disk @@ -59,7 +54,6 @@ define('COOKIE_FILE', '../includes/cookies/' . XBOX_EMAIL . '.jar'); define('DEBUG_FILE', '../includes/logs/debug.log'); define('STACK_TRACE_FILE', '../includes/logs/stack_trace.log'); -define('ERROR_FILE', '../includes/logs/error.log'); /*! * Initiate the caching engine. diff --git a/includes/classes/base.class.php b/includes/classes/base.class.php index 0e47b19..768ccd6 100644 --- a/includes/classes/base.class.php +++ b/includes/classes/base.class.php @@ -25,7 +25,6 @@ class Base public $cookie_file = ''; // cookie jar path public $debug_file = ''; // debug file path public $stack_trace_file = ''; // stack trace file path - public $error_file = ''; // error file path public $runtime = null; // current runtime public $ip = null; // ip address to use for session, generated in __construct() public $format; // default response format @@ -504,20 +503,6 @@ protected function save_stack_trace() } } } - - /*! - * Save a error log only for this script - */ - protected function save_error() - { - $file = fopen($this->error_file, 'a+'); - if (!$file) { - $this->error = 606; - } else { - fwrite($file, '[' . date('Y-m-d H:i:s') . '] ' . $errno . ' - ' . $errstr . ' in ' . $errfile . ' on line ' . $errline . "\n"); - fclose($file); - } - } } /** diff --git a/includes/kernel.php b/includes/kernel.php index d85d1f5..defd300 100644 --- a/includes/kernel.php +++ b/includes/kernel.php @@ -27,6 +27,5 @@ $api->cookie_file = COOKIE_FILE; $api->debug_file = DEBUG_FILE; $api->stack_trace_file = STACK_TRACE_FILE; -$api->error_file = ERROR_FILE; $api->init(XBOX_EMAIL, XBOX_PASSWORD);