From 026945a8147eb66e811eab784e93f5a36586c4a2 Mon Sep 17 00:00:00 2001 From: Tom Schlick Date: Thu, 8 Oct 2026 14:19:39 -0400 Subject: [PATCH] Send production logs to stderr so the platform captures exceptions. --- .env.example | 1 + docker/Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 79885e5..b93fae7 100644 --- a/.env.example +++ b/.env.example @@ -14,6 +14,7 @@ BCRYPT_ROUNDS=12 LOG_CHANNEL=stack LOG_STACK=single +# The production image sets LOG_CHANNEL=stderr so the platform captures exceptions. LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug diff --git a/docker/Dockerfile b/docker/Dockerfile index 1f09a72..5b11e01 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -64,4 +64,5 @@ FROM app AS production COPY --from=assets --chown=www-data:www-data /app/public/build /var/www/html/public/build ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS=0 \ - PHP_OPCACHE_REVALIDATE_FREQ=0 + PHP_OPCACHE_REVALIDATE_FREQ=0 \ + LOG_CHANNEL=stderr