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-3.1-testing] xend, xenapi: Strip characters from lo

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] xend, xenapi: Strip characters from logs that XMLRPC layer cannot
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Dec 2007 03:10:28 -0800
Delivery-date: Mon, 10 Dec 2007 03:12:25 -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 1196958548 0
# Node ID 930b728b07ffe35ff488305caf087e9a48424572
# Parent  ed0b98cf3a590ffa9b2db458d6215a1969e623e9
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>
xen-unstable changeset:   16382:79d050b2b35e472c0874443ceccf31cd65103571
xen-unstable date:        Fri Nov 16 14:45:35 2007 +0000
---
 tools/python/xen/xend/XendAPI.py |    2 ++
 1 files changed, 2 insertions(+)

diff -r ed0b98cf3a59 -r 930b728b07ff tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Thu Dec 06 16:28:37 2007 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Thu Dec 06 16:29:08 2007 +0000
@@ -988,6 +988,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-3.1-testing] xend, xenapi: Strip characters from logs that XMLRPC layer cannot, Xen patchbot-3.1-testing <=