direct-io.hg

changeset 13588:85250ca1df56

[XEND] Output exception to log files if XendAPI fails to instantiate.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Wed Jan 24 15:49:32 2007 +0000 (2007-01-24)
parents 072ce22bcc91
children f000f963bbfd
files tools/python/xen/xend/server/SrvServer.py
line diff
     1.1 --- a/tools/python/xen/xend/server/SrvServer.py	Wed Jan 24 15:48:58 2007 +0000
     1.2 +++ b/tools/python/xen/xend/server/SrvServer.py	Wed Jan 24 15:49:32 2007 +0000
     1.3 @@ -199,9 +199,8 @@ def _loadConfig(servers, root, reload):
     1.4                      servers.add(XMLRPCServer(auth, True, True, addr,
     1.5                                               int(port),
     1.6                                               hosts_allowed = allowed))
     1.7 -        except ValueError, exn:
     1.8 -            log.error('Xen-API server configuration %s is invalid.', api_cfg)
     1.9 -        except TypeError, exn:
    1.10 +        except (ValueError, TypeError), exn:
    1.11 +            log.exception('Xen API Server init failed')
    1.12              log.error('Xen-API server configuration %s is invalid.', api_cfg)
    1.13  
    1.14      if xoptions.get_xend_tcp_xmlrpc_server():