summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortermie <github@anarkystic.com>2012-01-11 16:09:44 -0800
committertermie <github@anarkystic.com>2012-01-11 16:09:44 -0800
commitbe52a5efef83babe6ed841f3eba052fa3b4e0945 (patch)
tree6cabfe483e4508d079bad7b49a7ba703a4c083c5
parent2a31259fa0afa504a523fc40f56027f22e540533 (diff)
downloadkeystone-be52a5efef83babe6ed841f3eba052fa3b4e0945.tar.gz
keystone-be52a5efef83babe6ed841f3eba052fa3b4e0945.tar.xz
keystone-be52a5efef83babe6ed841f3eba052fa3b4e0945.zip
strip newlines
-rw-r--r--keystone/backends/templated.py2
-rw-r--r--keystone/wsgi.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/keystone/backends/templated.py b/keystone/backends/templated.py
index f480459e..989ee0f6 100644
--- a/keystone/backends/templated.py
+++ b/keystone/backends/templated.py
@@ -50,7 +50,7 @@ class TemplatedCatalog(kvs.KvsCatalog):
if ' = ' not in line:
continue
- k, v = line.split(' = ')
+ k, v = line.strip().split(' = ')
if not k.startswith('catalog.'):
continue
diff --git a/keystone/wsgi.py b/keystone/wsgi.py
index 401b0f01..ee14970c 100644
--- a/keystone/wsgi.py
+++ b/keystone/wsgi.py
@@ -246,7 +246,8 @@ class Debug(Middleware):
"""Iterator that prints the contents of a wrapper string."""
logging.debug('%s %s %s', ('*' * 20), 'RESPONSE BODY', ('*' * 20))
for part in app_iter:
- sys.stdout.write(part)
+ #sys.stdout.write(part)
+ logging.debug(part)
#sys.stdout.flush()
yield part
print