Minor bug fixes

master
stadchenko 10 years ago
parent 3f199db814
commit 6e0753df18
  1. 6
      Harmonious.php

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

Loading…
Cancel
Save