run(); $responsetime = microtime(true)-$starttime; if ($responsetime>0.5) { Logger::debug( 'responsetime', 'resptime', array( 'time' => $responsetime, 'usr' => '-', 'url' => $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], ) ); } } catch (Exception $e) { //hiba történt //ajax kérés esetén így lefut az error handler header("HTTP/1.0 503 Service Unavailable"); if (class_exists('Logger', true)) { Logger::error( 'error', str_replace("\n", ' ', $e->__toString()) ); } }