WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xend, xenapi: Strip characters from logs

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend, xenapi: Strip characters from logs that XMLRPC layer cannot handle.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Nov 2007 12:00:10 -0800
Delivery-date: Thu, 22 Nov 2007 12:00:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend, xenapi: Strip characters from logs that XMLRPC layer cannot handle., Xen patchbot-unstable <=