[python-keystoneclient] fix logging error message

Alan Pevec apevec at fedoraproject.org
Wed Mar 21 22:01:20 UTC 2012


commit 9424fb27c7aeb6bcbb5aa24335d757cdb42ad6a2
Author: Alan Pevec <apevec at redhat.com>
Date:   Wed Mar 21 22:23:57 2012 +0100

    fix logging error message
    
    https://bugs.launchpad.net/keystone/+bug/936404

 .gitignore                             |    2 +-
 avoid-No-handlers-could-be-found.patch |   30 ++++++++++++++++++++++++++++++
 python-keystoneclient.spec             |    8 ++++++--
 sources                                |    2 +-
 4 files changed, 38 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 327a46b..348c6f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
 /python-keystoneclient-2012.1~e4.tar.gz
-/python-keystoneclient-2012.1~rc1~20120316.86.tar.gz
+/python-keystoneclient-2012.1~rc1~20120321.92.tar.gz
diff --git a/avoid-No-handlers-could-be-found.patch b/avoid-No-handlers-could-be-found.patch
new file mode 100644
index 0000000..e9e8c5d
--- /dev/null
+++ b/avoid-No-handlers-could-be-found.patch
@@ -0,0 +1,30 @@
+From 1284c176086f6e4ef0cc0f025456ea3113f02e3d Mon Sep 17 00:00:00 2001
+From: Russell Bryant <rbryant at redhat.com>
+Date: Wed, 14 Mar 2012 14:14:39 -0400
+Subject: [PATCH] Avoid "No handlers could be found for ..." message.
+
+Fix bug 936404.
+
+Avoid "no handlers could be found for keystoneclient.client" messages.
+This log message doesn't really seem necessary, so I just removed it.
+
+Change-Id: Ic9a608346b7d5f794d6022672e9a295b00472fc5
+---
+ keystoneclient/client.py |    1 -
+ 1 files changed, 0 insertions(+), 1 deletions(-)
+
+diff --git a/keystoneclient/client.py b/keystoneclient/client.py
+index 3042d09..73e7f9a 100644
+--- a/keystoneclient/client.py
++++ b/keystoneclient/client.py
+@@ -126,7 +126,6 @@ class HTTPClient(httplib2.Http):
+             body = None
+ 
+         if resp.status in (400, 401, 403, 404, 408, 409, 413, 500, 501):
+-            _logger.exception("Request returned failure status.")
+             raise exceptions.from_response(resp, body)
+         elif resp.status in (301, 302, 305):
+             # Redirected. Reissue the request to the new location.
+-- 
+1.7.7.6
+
diff --git a/python-keystoneclient.spec b/python-keystoneclient.spec
index 37cceb6..60df116 100644
--- a/python-keystoneclient.spec
+++ b/python-keystoneclient.spec
@@ -4,8 +4,8 @@
 %global release_name essex
 %global release_letter rc
 %global milestone 1
-%global snapdate 20120316
-%global git_revno 86
+%global snapdate 20120321
+%global git_revno 92
 %global snaptag ~%{release_letter}%{milestone}~%{snapdate}.%{git_revno}
 
 Name:       python-keystoneclient
@@ -21,6 +21,9 @@ BuildArch:  noarch
 #Source0:    http://launchpad.net/keystone/%{release_name}/%{release_name}-%{milestone}/+download/%{name}-%{version}~%{release_letter}%{milestone}.tar.gz
 Source0:    http://keystone.openstack.org/tarballs/%{name}-%{version}%{snaptag}.tar.gz
 
+# https://review.openstack.org/5353
+Patch1: avoid-No-handlers-could-be-found.patch
+
 Requires:   python-simplejson
 Requires:   python-httplib2
 Requires:   python-prettytable
@@ -46,6 +49,7 @@ Keystone's API.
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %{__python} setup.py build
diff --git a/sources b/sources
index c9b3237..88d78c5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-57306862b9af23fd2d69cf9a4686e8c9  python-keystoneclient-2012.1~rc1~20120316.86.tar.gz
+cf0c1da7532c230a276420a85e90119f  python-keystoneclient-2012.1~rc1~20120321.92.tar.gz


More information about the scm-commits mailing list