diff --git a/Harmonious.php b/Harmonious.php index 67ae6e2..6d24b02 100644 --- a/Harmonious.php +++ b/Harmonious.php @@ -791,8 +791,6 @@ || $error['type'] == E_COMPILE_ERROR || $error['type'] == E_CORE_ERROR) { - ob_end_clean(); // сбросить буфер, завершить работу буфера - if (isset($this)) { $this->getLog()->error('Fatal Error Catched: '.$error['message']); if ( $this->config('debug') === true ) { @@ -805,8 +803,10 @@ throw new Exception('Fatal Error Catched but not logged: ' . $error['message']); } } else { + if (isset($this)) { + $this->getLog()->warn('Shutdown Error Catched: '.$error['message']); + } } - } else { } }