From 34d946ba30a8992b6bff12c9b76d5171f1e4b16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Tue, 13 Aug 2024 18:29:56 +0200 Subject: [PATCH] chore: update monolog.yaml --- Dockerfile | 4 ---- config/packages/monolog.yaml | 16 ++++++++-------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index f9e21d2..5998934 100644 --- a/Dockerfile +++ b/Dockerfile @@ -95,10 +95,6 @@ RUN set -eux; \ composer dump-env prod; \ composer run-script --no-dev post-install-cmd; \ chmod +x bin/console; \ - sync - - -RUN set -eux; \ php bin/console assets:install; \ yarn install; \ yarn run build; \ diff --git a/config/packages/monolog.yaml b/config/packages/monolog.yaml index 9db7d8a..69f744a 100644 --- a/config/packages/monolog.yaml +++ b/config/packages/monolog.yaml @@ -9,7 +9,7 @@ when@dev: type: stream path: "%kernel.logs_dir%/%kernel.environment%.log" level: debug - channels: ["!event"] + channels: [ "!event" ] # uncomment to get logging in your browser # you may have to allow bigger header sizes in your Web server configuration #firephp: @@ -21,7 +21,7 @@ when@dev: console: type: console process_psr_3_messages: false - channels: ["!event", "!doctrine", "!console"] + channels: [ "!event", "!doctrine", "!console" ] when@test: monolog: @@ -30,8 +30,8 @@ when@test: type: fingers_crossed action_level: error handler: nested - excluded_http_codes: [404, 405] - channels: ["!event"] + excluded_http_codes: [ 404, 405 ] + channels: [ "!event" ] nested: type: stream path: "%kernel.logs_dir%/%kernel.environment%.log" @@ -42,9 +42,9 @@ when@prod: handlers: main: type: fingers_crossed - action_level: error + action_level: notice handler: nested - excluded_http_codes: [404, 405] + excluded_http_codes: [ 404, 405 ] buffer_size: 50 # How many messages should be saved? Prevent memory leaks nested: type: stream @@ -54,9 +54,9 @@ when@prod: console: type: console process_psr_3_messages: false - channels: ["!event", "!doctrine"] + channels: [ "!event", "!doctrine" ] deprecation: type: stream - channels: [deprecation] + channels: [ deprecation ] path: php://stderr formatter: monolog.formatter.json