From 67a1551f1af320ccaf0672c43e302ce96e0d0e85 Mon Sep 17 00:00:00 2001 From: Peter Havekes Date: Wed, 8 Jan 2025 09:23:23 +0100 Subject: [PATCH] Hide deprecation messages in prod logging --- config/packages/monolog.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/packages/monolog.yaml b/config/packages/monolog.yaml index 10bca89bc..d0d038237 100644 --- a/config/packages/monolog.yaml +++ b/config/packages/monolog.yaml @@ -1,8 +1,10 @@ monolog: + channels: + - deprecation handlers: prod-signaler: type: fingers_crossed - action_level: ERROR + action_level: INFO passthru_level: NOTICE # this means that all message of level NOTICE or higher are always logged handler: main_syslog bubble: false # if we handle it, nothing else should @@ -12,6 +14,9 @@ monolog: path: "php://stderr" formatter: surfnet_stepup.monolog.json_formatter channels: [ "!deprecation" ] + deprecation: + type: "null" + channels: [deprecation] when@dev: &override monolog: