diff --git a/HttpServer/Events/OnShutdown.php b/HttpServer/Events/OnShutdown.php index 95c35a5a..7fe7f809 100644 --- a/HttpServer/Events/OnShutdown.php +++ b/HttpServer/Events/OnShutdown.php @@ -33,6 +33,7 @@ class OnShutdown extends Callback */ public function onHandler(Server $server) { + $this->debug('server shutdown~'); $this->system_mail('server shutdown~'); $event = Snowflake::app()->getEvent(); $event->trigger(Event::SERVER_SHUTDOWN); diff --git a/System/Error/ErrorHandler.php b/System/Error/ErrorHandler.php index c09ab526..c56f4e22 100644 --- a/System/Error/ErrorHandler.php +++ b/System/Error/ErrorHandler.php @@ -62,17 +62,6 @@ class ErrorHandler extends Component implements ErrorInterface $message = array_shift($messages); - $workers = glob(storage(null, 'worker') . '/*'); - foreach ($workers as $worker) { - $content = file_get_contents($worker); - posix_kill($content, 9); - } - - $content = '[error]: ' . date('Y-m-d H:i:s') . PHP_EOL; - $content .= print_r($lastError, true); - - Snowflake::writeFile(storage('shutdown.log'), $content, FILE_APPEND); - $this->sendError($message, $lastError['file'], $lastError['line']); }