Esempio n. 1
0
 /**
  * Try to log that something went wrong
  *
  * @return void
  */
 protected function log()
 {
     if (class_exists('CCLog')) {
         try {
             \CCLog::add($this->inspector->exception()->getMessage() . " - " . str_replace(CCROOT, '', $this->inspector->exception()->getFile()) . ":" . $this->inspector->exception()->getLine(), 'exception');
             \CCLog::write();
         } catch (\Exception $e) {
         }
     }
 }