diff --git a/src/Commands/Concerns/InstallsRoadRunnerDependencies.php b/src/Commands/Concerns/InstallsRoadRunnerDependencies.php index aa13ccb8a..52d455523 100644 --- a/src/Commands/Concerns/InstallsRoadRunnerDependencies.php +++ b/src/Commands/Concerns/InstallsRoadRunnerDependencies.php @@ -21,7 +21,7 @@ trait InstallsRoadRunnerDependencies * * @var string */ - protected $requiredVersion = '2.1.1'; + protected $requiredVersion = '2.6.6'; /** * Determine if RoadRunner is installed. diff --git a/src/Commands/Concerns/InteractsWithIO.php b/src/Commands/Concerns/InteractsWithIO.php index fe88418f0..b12b7eccb 100644 --- a/src/Commands/Concerns/InteractsWithIO.php +++ b/src/Commands/Concerns/InteractsWithIO.php @@ -24,8 +24,10 @@ trait InteractsWithIO 'scan command', 'stop signal received, grace timeout is: ', 'exit forced', + 'worker allocated', 'worker constructed', 'worker destructed', + '[INFO] RoadRunner server started; version:', ]; /** diff --git a/src/Commands/StartRoadRunnerCommand.php b/src/Commands/StartRoadRunnerCommand.php index 4e4037c0e..b9eea8b60 100644 --- a/src/Commands/StartRoadRunnerCommand.php +++ b/src/Commands/StartRoadRunnerCommand.php @@ -200,14 +200,22 @@ protected function writeServerOutput($server) return $this->raw($debug['msg']); } - if ($debug['level'] == 'debug' && isset($debug['remote'])) { - [$statusCode, $method, $url] = explode(' ', $debug['msg']); + if ($debug['level'] == 'info' + && isset($debug['remote_address']) + && isset($debug['msg']) + && $debug['msg'] == 'http log') { + [ + 'elapsed' => $elapsed, + 'method' => $method, + 'status' => $statusCode, + 'URI' => $url, + ] = $debug; return $this->requestInfo([ 'method' => $method, 'url' => $url, 'statusCode' => $statusCode, - 'duration' => $this->calculateElapsedTime($debug['elapsed']), + 'duration' => $this->calculateElapsedTime($elapsed), ]); } });