diff --git a/System/Abstracts/BaseObject.php b/System/Abstracts/BaseObject.php index 7e82a9d9..b8623f99 100644 --- a/System/Abstracts/BaseObject.php +++ b/System/Abstracts/BaseObject.php @@ -92,7 +92,6 @@ class BaseObject implements Configure */ public function addError($message, $model = 'app'): bool { - var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)); if ($message instanceof \Throwable) { $this->error($message->getMessage(), $message->getFile(), $message->getLine()); } else { @@ -173,7 +172,6 @@ class BaseObject implements Configure */ public function error(mixed $message, $method = null, $file = null) { - var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)); if (!empty($file)) { echo "\033[41;37m[ERROR][" . date('Y-m-d H:i:s') . ']: ' . $file . "\033[0m"; echo PHP_EOL; diff --git a/System/Process/Process.php b/System/Process/Process.php index 024968a0..e91bfd4b 100644 --- a/System/Process/Process.php +++ b/System/Process/Process.php @@ -7,6 +7,7 @@ namespace Snowflake\Process; use Exception; use Snowflake\Application; +use Snowflake\Event; use Snowflake\Snowflake; /** @@ -31,6 +32,7 @@ abstract class Process extends \Swoole\Process implements SProcess { $class = get_called_class(); parent::__construct(function ($process) use ($name, $class) { + fire(Event::SERVER_WORKER_START); if (Snowflake::isLinux()) { $prefix = ucfirst(rtrim(Snowflake::app()->id, ':')); $this->name($prefix . ': ' . $class);