Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -36,13 +36,8 @@ class ErrorHandler extends Component implements ErrorInterface
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
// ini_set('display_errors', '1');
|
||||
set_exception_handler([$this, 'exceptionHandler']);
|
||||
if (defined('HHVM_VERSION')) {
|
||||
set_error_handler([$this, 'errorHandler']);
|
||||
} else {
|
||||
set_error_handler([$this, 'errorHandler']);
|
||||
}
|
||||
set_error_handler([$this, 'errorHandler']);
|
||||
register_shutdown_function([$this, 'shutdown']);
|
||||
}
|
||||
|
||||
@@ -118,8 +113,6 @@ class ErrorHandler extends Component implements ErrorInterface
|
||||
{
|
||||
$path = ['file' => $file, 'line' => $line];
|
||||
|
||||
var_dump(func_get_args());
|
||||
|
||||
$data = Json::to($code, $this->category . ': ' . $message, $path);
|
||||
|
||||
write($data, $this->category);
|
||||
|
||||
Reference in New Issue
Block a user