Skip to content

Commit

Permalink
Hide deprecation messages in prod logging
Browse files Browse the repository at this point in the history
  • Loading branch information
phavekes authored Jan 8, 2025
1 parent 2b6263a commit 67a1551
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/packages/monolog.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 67a1551

Please sign in to comment.