public function createExecutor($application_id, $app_version_id) { $executor = new CodeExecutor($application_id, $app_version_id); try { // code download java driver on server side //CodeManagement::getInstance()->downloadCode( $application_id, $app_version_id );/// $executor->init(); } catch (Exception $e) { Log::writeError("Can not create executor for appVersionId: " . $app_version_id); Log::writeError("Can not create executor msg:" . $e->getMessage(), $target = "file"); } return $executor; }
private function afterRequest() { if (defined("DEV_MODE")) { Log::writeInfo("Server response: " . $this->getResponse(), "file"); Log::writeInfo("---------------------------------------------------------------------------------------------", "file"); echo "\n"; Log::writeInfo("Processing results", $target = 'console'); } }
public static function devMode() { define('DEV_MODE', true); Log::init(); }
private function afterRequest() { if (defined('DEV_MODE')) { Log::writeInfo('Server response: ' . $this->getResponse(), 'file'); Log::writeInfo('---------------------------------------------------------------------------------------------', 'file'); echo 'n'; Log::writeInfo('Processing results', 'console'); } }