git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
====
[plcapi.git]
/
PLC
/
Peers.py
diff --git
a/PLC/Peers.py
b/PLC/Peers.py
index
1fa515a
..
c272a2a
100644
(file)
--- a/
PLC/Peers.py
+++ b/
PLC/Peers.py
@@
-8,7
+8,7
@@
import traceback
from urlparse import urlparse
import PLC.Auth
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
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:
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,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):
"""
def remove_node(self, node, commit = True):
"""