summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-08-26 15:47:41 -0400
committerTim Graham <timograham@gmail.com>2015-08-28 13:34:56 -0400
commit01b2b0b6543afdaf30623b7a779b7fe4514a9c7b (patch)
tree18c8a6d5612bce107621c882beb6c8b51cd3b014 /django
parent2bb1027d6bcdad59624a9d08701e0d2e4a9c0ba7 (diff)
Fixed #25318 -- Made SILENCED_SYSTEM_CHECKS suppress all messages.
Previously, messages of ERROR level or higher were printed to the console.
Diffstat (limited to 'django')
-rw-r--r--django/core/management/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/management/base.py b/django/core/management/base.py
index 665b7da1fb..e20944e277 100644
--- a/django/core/management/base.py
+++ b/django/core/management/base.py
@@ -438,8 +438,8 @@ class BaseCommand(object):
debugs = [e for e in all_issues if e.level < checks.INFO and not e.is_silenced()]
infos = [e for e in all_issues if checks.INFO <= e.level < checks.WARNING and not e.is_silenced()]
warnings = [e for e in all_issues if checks.WARNING <= e.level < checks.ERROR and not e.is_silenced()]
- errors = [e for e in all_issues if checks.ERROR <= e.level < checks.CRITICAL]
- criticals = [e for e in all_issues if checks.CRITICAL <= e.level]
+ errors = [e for e in all_issues if checks.ERROR <= e.level < checks.CRITICAL and not e.is_silenced()]
+ criticals = [e for e in all_issues if checks.CRITICAL <= e.level and not e.is_silenced()]
sorted_issues = [
(criticals, 'CRITICALS'),
(errors, 'ERRORS'),