From: Thierry Parmentelat Date: Wed, 13 Apr 2011 08:15:35 +0000 (+0200) Subject: also print out stack dump when hrn can't be figured while adding a federated node X-Git-Tag: plcapi-5.0-33~8 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5deef0f45771cd49635f0d7ea2623bc9efd5a0aa;p=plcapi.git also print out stack dump when hrn can't be figured while adding a federated node --- diff --git a/PLC/Namespace.py b/PLC/Namespace.py index 1332ea2b..745c1353 100644 --- a/PLC/Namespace.py +++ b/PLC/Namespace.py @@ -1,6 +1,3 @@ -### $Id: Namespace.py -### $URL: - URN_PREFIX = "urn:publicid:IDN" def get_leaf(hrn): diff --git a/PLC/Peers.py b/PLC/Peers.py index 64891990..1fa515a9 100644 --- a/PLC/Peers.py +++ b/PLC/Peers.py @@ -4,6 +4,7 @@ import re from types import StringTypes +import traceback from urlparse import urlparse import PLC.Auth @@ -174,7 +175,9 @@ class Peer(Row): tags = {'hrn': hrn} Node(self.api, node).update_tags(tags) except: - print >>log, "WARNING: could not find out hrn on hostname=%s"%node['hostname'] + print >>log, "WARNING: (beg) could not find out hrn on hostname=%s"%node['hostname'] + traceback.print_exc(5,log) + print >>log, "WARNING: (end) could not find out hrn on hostname=%s"%node['hostname'] def remove_node(self, node, commit = True): """