This commit is contained in:
2020-09-02 19:09:32 +08:00
parent d97e45e201
commit 4e881c628b
3 changed files with 39 additions and 34 deletions
+2 -4
View File
@@ -19,7 +19,7 @@ class OnWorkerError extends Callback
* @param int $worker_pid
* @param int $exit_code
* @param int $signal
* @throws ConfigException
* @throws Exception
*/
public function onHandler(Server $server, int $worker_id, int $worker_pid, int $exit_code, int $signal)
{
@@ -27,9 +27,7 @@ class OnWorkerError extends Callback
if (!Config::has('email')) {
return;
}
$email = Config::get('email');
$name = Config::get('nickname', false, 'Admin');
$this->system_mail($email, $name, print_r([
$this->system_mail(print_r([
'$worker_pid' => $worker_pid,
'$worker_id' => $worker_id,
'$exit_code' => $exit_code,