Update WorkerStartCallback.php

This commit is contained in:
huangzhhui 2019-07-28 23:23:24 +08:00
parent 452c90899e
commit f3ba7cb298

View File

@ -50,8 +50,11 @@ class WorkerStartCallback
} else {
$this->eventDispatcher->dispatch(new OtherWorkerStart($server, $workerId));
}
$this->logger->info("Worker#{$workerId} started.");
if ($server->taskworker) {
$this->logger->info("TaskWorker#{$workerId} started.");
} else {
$this->logger->info("Worker#{$workerId} started.");
}
$this->eventDispatcher->dispatch(new AfterWorkerStart($server, $workerId));
}