From 5deef0f45771cd49635f0d7ea2623bc9efd5a0aa Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 13 Apr 2011 10:15:35 +0200 Subject: [PATCH] also print out stack dump when hrn can't be figured while adding a federated node --- PLC/Namespace.py | 3 --- PLC/Peers.py | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PLC/Namespace.py b/PLC/Namespace.py index 1332ea2..745c135 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 6489199..1fa515a 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): """ -- 2.43.0