WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XEND] Output exception to log files if X

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Output exception to log files if XendAPI fails to instantiate.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Jan 2007 08:55:26 -0800
Delivery-date: Thu, 25 Jan 2007 08:57:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Date 1169653772 0
# Node ID 85250ca1df569cc14f5f3d553f5f103e0bb4f0d1
# Parent  072ce22bcc91e4b48c5ceccccec41f26a73cdd82
[XEND] Output exception to log files if XendAPI fails to instantiate.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/server/SrvServer.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff -r 072ce22bcc91 -r 85250ca1df56 tools/python/xen/xend/server/SrvServer.py
--- a/tools/python/xen/xend/server/SrvServer.py Wed Jan 24 15:48:58 2007 +0000
+++ b/tools/python/xen/xend/server/SrvServer.py Wed Jan 24 15:49:32 2007 +0000
@@ -199,9 +199,8 @@ def _loadConfig(servers, root, reload):
                     servers.add(XMLRPCServer(auth, True, True, addr,
                                              int(port),
                                              hosts_allowed = allowed))
-        except ValueError, exn:
-            log.error('Xen-API server configuration %s is invalid.', api_cfg)
-        except TypeError, exn:
+        except (ValueError, TypeError), exn:
+            log.exception('Xen API Server init failed')
             log.error('Xen-API server configuration %s is invalid.', api_cfg)
 
     if xoptions.get_xend_tcp_xmlrpc_server():

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Output exception to log files if XendAPI fails to instantiate., Xen patchbot-unstable <=