[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xend, xenapi: Strip characters from logs that XMLRPC layer cannot handle.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1195224335 0
# Node ID 79d050b2b35e472c0874443ceccf31cd65103571
# Parent  d1ac500f77c180b97e495c3bc85e18db33a9e955
xend, xenapi: Strip characters from logs that XMLRPC layer cannot handle.
From: Ian Jackson <ian.jackson@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/python/xen/xend/XendAPI.py |    2 ++
 1 files changed, 2 insertions(+)

diff -r d1ac500f77c1 -r 79d050b2b35e tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Fri Nov 16 14:40:22 2007 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Fri Nov 16 14:45:35 2007 +0000
@@ -994,6 +994,8 @@ class XendAPI(object):
     def host_get_log(self, session, host_ref):
         log_file = open(XendLogging.getLogFilename())
         log_buffer = log_file.read()
+        log_buffer = log_buffer.replace('\b', ' ')
+        log_buffer = log_buffer.replace('\f', '\n')
         return xen_api_success(log_buffer)
 
     def host_send_debug_keys(self, _, host_ref, keys):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.