Exemplo n.º 1
0
 public function handleStandardOutput(StandardOutputEvent $aEvt)
 {
     $this->getModel()->push('app.standardOutput.messages', ['message' => $aEvt->getText()]);
     if (\App\DEBUG) {
         Env::getLogger()->debug('[STDOUT] ' . $aEvt->getText());
     }
 }
 public function handleException(Throwable $aEx)
 {
     Env::getLogger()->error((string) $aEx, ['requestId' => Env::getVars()->get('requestId'), 'exception' => $aEx]);
     Env::getStandardOutput()->write('FATAL ERROR: ' . $aEx->getMessage());
 }