Esempio n. 1
0
 public function shutdown()
 {
     try {
         if (GlobalState::$TYPE == 'CLOUD') {
             return;
         }
         if (Config::$STATUS == "registered") {
             CodeRunnerUtil::getInstance()->unRegisterCodeRunner();
             Log::writeInfo("Debugging Utility disconnected successfully.");
             Log::writeToLogFile("\n");
         }
         if (GlobalState::$TYPE == 'LOCAL') {
             $this->tryStopDebugIdUpdater();
         }
         Log::writeInfo("Thank you for using Backendless.\n", "console");
     } catch (Exception $e) {
         Log::writeError("Unfortunately, Debugging Utility disconnected unsuccessfully.\n");
     }
 }