modify
This commit is contained in:
@@ -30,8 +30,8 @@ class OnWorkerError extends Callback
|
|||||||
{
|
{
|
||||||
Event::trigger(Event::SERVER_WORKER_ERROR);
|
Event::trigger(Event::SERVER_WORKER_ERROR);
|
||||||
|
|
||||||
$message = sprintf('Worker#%d::%d error stop. signal %d, exit_code %d',
|
$message = sprintf('Worker#%d::%d error stop. signal %d, exit_code %d, msg %s',
|
||||||
$worker_id, $signal, $worker_pid, $exit_code
|
$worker_id, $worker_pid, $signal, $exit_code, swoole_strerror(swoole_last_error())
|
||||||
);
|
);
|
||||||
|
|
||||||
write($message, 'worker-exit');
|
write($message, 'worker-exit');
|
||||||
|
|||||||
Reference in New Issue
Block a user