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

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



On Wed, May 21, 2008 at 01:36:11PM +0800, Zhigang Wang wrote:
> 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.

Instead of doing

   from xen.xend.XendLogging import log

   ...

   log.debug("Blah")


All the code could  just use Python's real logging API directly avoiding
the Xen specific code which doesn't really add any value here. eg

    import logging

    logging.debug("Blah")

Dan.
-- 
|: Red Hat, Engineering, Boston   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

_______________________________________________
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®.