ia64/xen-unstable

changeset 13045:8b2de97db39d

Fix exception handling in xend start-of-day.

Signed-off-by: Steven Hand <steven@xensource.com>
author Steven Hand <steven@xensource.com>
date Thu Dec 14 20:58:27 2006 +0000 (2006-12-14)
parents a05fefbeb19f
children a407f14478ba
files tools/python/xen/xend/XendStorageRepository.py
line diff
     1.1 --- a/tools/python/xen/xend/XendStorageRepository.py	Thu Dec 14 20:23:07 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendStorageRepository.py	Thu Dec 14 20:58:27 2006 +0000
     1.3 @@ -93,7 +93,7 @@ class XendStorageRepository:
     1.4                  open(uuid_file, 'w').write(new_uuid + '\n')
     1.5                  return new_uuid
     1.6          except IOError:
     1.7 -            log.exception()
     1.8 +            log.exception("Failed to determine SR UUID")
     1.9  
    1.10          return uuid.createString()
    1.11  
    1.12 @@ -232,7 +232,7 @@ class XendStorageRepository:
    1.13                      if cfg_path and os.path.exists(cfg_path):
    1.14                          os.unlink(cfg_path)
    1.15                  except OSError:
    1.16 -                    log.exception()
    1.17 +                    log.exception("Failed to destroy image")
    1.18                  del self.images[image_uuid]
    1.19                  return True
    1.20          finally: