This commit is contained in:
2021-01-04 16:33:46 +08:00
parent ba01456f2e
commit 2f5bf98966
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -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);