diff --git a/src/Worker.php b/src/Worker.php index be0d3e3d4..b83ba083b 100644 --- a/src/Worker.php +++ b/src/Worker.php @@ -2017,6 +2017,8 @@ protected static function writeStatisticsToStatusFile(): void chmod(static::$statisticsFile, 0722); file_put_contents(static::$statisticsFile, serialize($allWorkerInfo) . "\n", FILE_APPEND); $loadavg = function_exists('sys_getloadavg') ? array_map(round(...), sys_getloadavg(), [2, 2, 2]) : ['-', '-', '-']; + file_put_contents(static::$statisticsFile, + (static::$daemonize ? "Start worker in DAEMON mode." : "Start worker in DEBUG mode.") . "\n", FILE_APPEND); file_put_contents(static::$statisticsFile, "----------------------------------------------GLOBAL STATUS----------------------------------------------------\n", FILE_APPEND); file_put_contents(static::$statisticsFile,