Skip to content

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusklocke committed Jan 12, 2025
1 parent d7ce372 commit 875f7a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions bin/lima-worker
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ $logger = $app->getContainer()->get(LoggerInterface::class);
/** @var PSR7Worker $worker */
$worker = $app->getContainer()->get(PSR7Worker::class);

$logger->info('Roadrunner worker started: Waiting for requests', [
'versions' => [
'app' => getenv('APP_VERSION'),
'php' => getenv('PHP_VERSION'),
]
]);

while (true) {
try {
$request = $worker->waitRequest();
Expand Down
2 changes: 1 addition & 1 deletion docker/php/roadrunner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ RUN chmod +x bin/*
ENV PATH="${PATH}:${APP_HOME}/bin:${APP_HOME}/vendor/bin"
EXPOSE 8080
ENTRYPOINT ["docker-php-entrypoint"]
CMD ["rr","serve","-c","/usr/local/etc/rr.yaml"]
CMD ["rr","serve","--config","/usr/local/etc/rr.yaml","--silent"]

0 comments on commit 875f7a6

Please sign in to comment.