]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Added do-not-use-django.utils.log.NullHandler.patch
authorThomas Goirand <thomas@goirand.fr>
Mon, 11 Jan 2016 03:32:16 +0000 (03:32 +0000)
committerThomas Goirand <thomas@goirand.fr>
Mon, 11 Jan 2016 03:32:16 +0000 (03:32 +0000)
Rewritten-From: 9fbbe52f72a5d4c0f06b61889034a131277c5c38

trusty/debian/changelog
trusty/debian/patches/do-not-use-django.utils.log.NullHandler.patch [new file with mode: 0644]
trusty/debian/patches/series

index 6459e9900f283b7bcc2c46251afbba1a37c43f2b..262689854d45b7bd34eeb4e9df675311b8127f55 100644 (file)
@@ -1,5 +1,6 @@
 horizon (2:8.0.0-4) unstable; urgency=medium
 
+  * Added do-not-use-django.utils.log.NullHandler.patch
   * Added do-not-use-importlib-from-django.patch.
 
  -- Thomas Goirand <zigo@debian.org>  Mon, 11 Jan 2016 02:54:28 +0000
diff --git a/trusty/debian/patches/do-not-use-django.utils.log.NullHandler.patch b/trusty/debian/patches/do-not-use-django.utils.log.NullHandler.patch
new file mode 100644 (file)
index 0000000..8711ad2
--- /dev/null
@@ -0,0 +1,28 @@
+Description: Do not use django.utils.log.NullHandler
+ This was removed from Django 1.9
+Author: Thomas Goirand <zigo@debian.org>
+Forwarded: no
+Last-Update: 2016-01-11
+
+--- horizon-8.0.0.orig/horizon/test/settings.py
++++ horizon-8.0.0/horizon/test/settings.py
+@@ -157,7 +157,7 @@ LOGGING = {
+     'handlers': {
+         'null': {
+             'level': 'DEBUG',
+-            'class': 'django.utils.log.NullHandler',
++            'class': 'logging.NullHandler',
+         },
+         'test': {
+             'level': 'ERROR',
+--- horizon-8.0.0.orig/openstack_dashboard/local/local_settings.py.example
++++ horizon-8.0.0/openstack_dashboard/local/local_settings.py.example
+@@ -395,7 +395,7 @@ LOGGING = {
+     'handlers': {
+         'null': {
+             'level': 'DEBUG',
+-            'class': 'django.utils.log.NullHandler',
++            'class': 'logging.NullHandler',
+         },
+         'console': {
+             # Set the level to "DEBUG" for verbose output logging.
index 7f5f2d2e45d485bc267e6e82861cda7714a17be6..1f10cfe607520c45c90aad9a86dada99cf5132c0 100644 (file)
@@ -2,3 +2,4 @@ fix-dashboard-django-wsgi.patch
 fix-dashboard-manage.patch
 fixed-horizon-MANIFEST.in.patch
 do-not-use-importlib-from-django.patch
+do-not-use-django.utils.log.NullHandler.patch