[Django 1.9] Do not use django.utils.log.NullHandler

django.utils.log.NullHandler is removed from Django 1.9, this patch
uses logging.NullHandler instead.

Change-Id: I940e72468400fde85342c44f55cce5f5e2a3c66e
Closes-Bug: 1534526
Partially-Implements: blueprint drop-dj17
This commit is contained in:
Thomas Goirand 2016-01-15 09:54:15 +00:00 committed by Rob Cresswell
parent eb2554ad9b
commit b9cfe4d200
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ LOGGING = {
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'django.utils.log.NullHandler',
'class': 'logging.NullHandler',
},
'test': {
'level': 'ERROR',

View File

@ -425,7 +425,7 @@ LOGGING = {
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'django.utils.log.NullHandler',
'class': 'logging.NullHandler',
},
'console': {
# Set the level to "DEBUG" for verbose output logging.