From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhigang Wang Subject: [PATCH]Remove XendLogging dependency from xswatch Date: Wed, 21 May 2008 13:36:11 +0800 Message-ID: <4833B4CB.3090001@oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090903010702050500050709" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------090903010702050500050709 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, xstransact and xswatch are well designed python interface that can be used by third party utils rather than only in xend. But the logging approach here binds xswatch to xend and prevent it from being used by other utils. This patch removes the dependency on XendLogging from xswatch. Signed-off-by: Zhigang Wang regards, zhigang --------------090903010702050500050709 Content-Type: text/x-patch; name="xen-xswatch-logging.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xen-xswatch-logging.patch" Remove XendLogging dependency from xswatch xstransact and xswatch are well designed python interface that can be used by third party utils rather than only in xend. But the logging approach here binds xswatch to xend and prevent it from being used by other utils. This patch removes the dependency on XendLogging from xswatch. Signed-off-by: Zhigang Wang --- xen-unstable.orig/tools/python/xen/xend/xenstore/xswatch.py 2008-05-12 16:43:52.000000000 +0800 +++ xen-unstable/tools/python/xen/xend/xenstore/xswatch.py 2008-05-21 13:14:58.000000000 +0800 @@ -9,8 +9,6 @@ import errno import threading from xen.xend.xenstore.xsutil import xshandle -from xen.xend.XendLogging import log - class xswatch: @@ -76,7 +74,7 @@ def watchMain(): else: raise except: - log.exception("read_watch failed") + pass # Ignore this exception -- there's no point throwing it # further on because that will just kill the watcher thread, # which achieves nothing. --------------090903010702050500050709 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------090903010702050500050709--