Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

! Removed custom error logging #54

Merged
merged 1 commit into from
Jan 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions includes/bootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
15 changes: 0 additions & 15 deletions includes/classes/base.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}
}

/**
Expand Down
1 change: 0 additions & 1 deletion includes/kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);