xend: Scrub vnc password for vfb from xend.log.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 5 Feb 2008 10:40:10 +0000 (10:40 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 5 Feb 2008 10:40:10 +0000 (10:40 +0000)
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/server/DevController.py

index 58c3500c9fd5958e14ec592a48e06b12f71184b8..8e70c376f70a679a5d740ef3c9e0e008df64d509 100644 (file)
@@ -22,6 +22,7 @@ import types
 from xen.xend import sxp, XendOptions
 from xen.xend.XendError import VmError
 from xen.xend.XendLogging import log
+import xen.xend.XendConfig
 
 from xen.xend.xenstore.xstransact import xstransact, complete
 from xen.xend.xenstore.xswatch import xswatch
@@ -113,10 +114,10 @@ class DevController:
                     raise VmError("Device %s is already connected." % dev_str)
 
                 if count == 0:
-                    log.debug('DevController: writing %s to %s.', str(front),
-                              frontpath)
-                    log.debug('DevController: writing %s to %s.', str(back),
-                              backpath)
+                    log.debug('DevController: writing %s to %s.',
+                              str(front), frontpath)
+                    log.debug('DevController: writing %s to %s.',
+                              str(xen.xend.XendConfig.scrub_password(back)), backpath)
                 elif count % 50 == 0:
                     log.debug(
                       'DevController: still waiting to write device entries.')