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

[Xen-devel] [PATCH]Remove XendLogging dependency from xswatch



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 <zhigang.x.wang@xxxxxxxxxx>

regards,

zhigang
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 <zhigang.x.wang@xxxxxxxxxx>

--- 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.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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