From ed3373c8a2b21932474d42680bb3d8bcaabbef90 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Mon, 25 Apr 2016 11:52:21 +0200
Subject: [PATCH] [settings] Suppress beat.core messages by default

---
 beat/web/settings/settings.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/beat/web/settings/settings.py b/beat/web/settings/settings.py
index 8b66e30e9..0c60eba0c 100644
--- a/beat/web/settings/settings.py
+++ b/beat/web/settings/settings.py
@@ -78,6 +78,10 @@ LOGGING = {
             },
         },
     'handlers': {
+        'discard': {
+            'level': 'DEBUG',
+            'class': 'logging.NullHandler',
+            },
         'console': {
             'level': 'DEBUG',
             'class': 'logging.StreamHandler',
@@ -92,6 +96,10 @@ LOGGING = {
         'beat.web': {
             'handlers': ['console', 'mail_admins'],
             },
+        'beat.core': {
+            'handlers': ['discard'],
+            'propagate': False, #don't e-mail those!
+            },
         'beat.web.attestations.management.commands': {
             'handlers': ['console'],
             'propagate': False, #don't e-mail those!
-- 
GitLab