X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=PLC%2FPeers.py;h=c272a2acc15358f8e39419d9f3b89c13ec9f588b;hb=e70e20fdbececafef842ec7b330fd48db42e614e;hp=bab43f68254d9460c002b17bcbe35c30ba08c97e;hpb=f9ac2727e6fbddf97e885ffa1271a562315fb274;p=plcapi.git diff --git a/PLC/Peers.py b/PLC/Peers.py index bab43f6..c272a2a 100644 --- a/PLC/Peers.py +++ b/PLC/Peers.py @@ -8,7 +8,7 @@ import traceback from urlparse import urlparse import PLC.Auth -from PLC.Debug import log +from PLC.Logger import logger from PLC.Faults import * from PLC.Namespace import hostname_to_hrn from PLC.Parameter import Parameter, Mixed @@ -175,9 +175,7 @@ class Peer(Row): tags = {'hrn': hrn} Node(self.api, node).update_tags(tags) except: - print >> log, "WARNING: (beg) could not find out hrn on hostname=%s"%node['hostname'] - traceback.print_exc(5,file=log) - print >> log, "WARNING: (end) could not find out hrn on hostname=%s"%node['hostname'] + logger.exception("Could not find out hrn on hostname=%s"%node['hostname']) def remove_node(self, node, commit = True): """