From 0e4e41474aadd1d1961acdee565320cc7072a917 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Sun, 7 Dec 2025 23:54:01 +0100 Subject: [PATCH] [symfony/monolog-bundle] Adding `deprecation_deduplication` handler Just an idea: Wouldn't a deduplication handler make sense here? I mean, who needs the same deprecation message 10.000 times? --- symfony/monolog-bundle/3.7/config/packages/monolog.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/symfony/monolog-bundle/3.7/config/packages/monolog.yaml b/symfony/monolog-bundle/3.7/config/packages/monolog.yaml index bb5970866..143e7afc0 100644 --- a/symfony/monolog-bundle/3.7/config/packages/monolog.yaml +++ b/symfony/monolog-bundle/3.7/config/packages/monolog.yaml @@ -48,8 +48,12 @@ when@prod: type: console process_psr_3_messages: false channels: ["!event", "!doctrine"] + deprecation_deduplication: + type: deduplication + channels: [deprecation] + handler: deprecation + time: 86400 # 1 day deprecation: type: stream - channels: [deprecation] path: php://stderr formatter: monolog.formatter.json