Browse Source

enable monolog mailing on cron critical error

Olivier Massot 1 year ago
parent
commit
67e0b260fa
1 changed files with 17 additions and 17 deletions
  1. 17 17
      config/packages/docker/monolog.yaml

+ 17 - 17
config/packages/docker/monolog.yaml

@@ -57,23 +57,23 @@ monolog:
             level: debug
             max_files: 7
             formatter: monolog.formatter.message
-#        cron_critical:
-#            type:           fingers_crossed
-#            action_level:   critical
-#            handler:        cron_deduplicated
-#        cron_deduplicated:
-#            type: deduplication
-#            # the time in seconds during which duplicate entries are discarded (default: 60)
-#            time: 10
-#            handler: cron_mailer
-#        cron_mailer:
-#            type:           symfony_mailer
-#            from_email:     "process@opentalent.fr"
-#            to_email:       "exploitation@opentalent.fr"
-#            subject:        "Cron - Critical Error"
-#            level:          error
-#            formatter:      monolog.formatter.html
-#            content_type:   text/html
+        cron_critical:
+            type:           fingers_crossed
+            action_level:   critical
+            handler:        cron_deduplicated
+        cron_deduplicated:
+            type: deduplication
+            # the time in seconds during which duplicate entries are discarded (default: 60)
+            time: 10
+            handler: cron_mailer
+        cron_mailer:
+            type:           symfony_mailer
+            from_email:     "cron@opentalent.fr"
+            to_email:       "exploitation@opentalent.fr"
+            subject:        "Cron - Critical Error"
+            level:          error
+            formatter:      monolog.formatter.html
+            content_type:   text/html
 
 
         # uncomment to get logging in your browser