ia64/xen-unstable

changeset 12235:f64cc6f50f6e

[XEND] Silence Xen API debugging messages.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Nov 03 10:38:18 2006 +0000 (2006-11-03)
parents 82e3575e7588
children 374087600412
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Fri Nov 03 10:26:36 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Fri Nov 03 10:38:18 2006 +0000
     1.3 @@ -309,7 +309,8 @@ class XendAPI:
     1.4                      getter.api = '%s.get_%s' % (cls, attr_name)
     1.5                      setattr(XendAPI, getter_name, getter)
     1.6                  except AttributeError:
     1.7 -                    log.warn("API call: %s not found" % getter_name)
     1.8 +                    pass
     1.9 +                    #log.warn("API call: %s not found" % getter_name)
    1.10  
    1.11              # wrap validators around writable class attrributes
    1.12              for attr_name in rw_attrs + self.Base_attr_rw:
    1.13 @@ -321,7 +322,8 @@ class XendAPI:
    1.14                      setter.api = '%s.set_%s' % (cls, attr_name)
    1.15                      setattr(XendAPI, setter_name, setter)
    1.16                  except AttributeError:
    1.17 -                    log.warn("API call: %s not found" % setter_name)
    1.18 +                    pass
    1.19 +                    #log.warn("API call: %s not found" % setter_name)
    1.20  
    1.21              # wrap validators around methods
    1.22              for method_name in methods + self.Base_methods:
    1.23 @@ -333,7 +335,8 @@ class XendAPI:
    1.24                      method.api = '%s.%s' % (cls, method_name)
    1.25                      setattr(XendAPI, method_full_name, method)
    1.26                  except AttributeError:
    1.27 -                    log.warn('API call: %s not found' % method_full_name)
    1.28 +                    pass
    1.29 +                    #log.warn('API call: %s not found' % method_full_name)
    1.30  
    1.31              # wrap validators around class functions
    1.32              for func_name in funcs + self.Base_funcs:
    1.33 @@ -344,7 +347,8 @@ class XendAPI:
    1.34                      method.api = '%s.%s' % (cls, func_name)
    1.35                      setattr(XendAPI, func_full_name, method)
    1.36                  except AttributeError:
    1.37 -                    log.warn('API call: %s not found' % func_full_name)
    1.38 +                    pass
    1.39 +                    #log.warn('API call: %s not found' % func_full_name)
    1.40  
    1.41  
    1.42      Base_attr_ro = ['uuid']