git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
really fixed the redundant logging issue this time.
[sfa.git]
/
sfa
/
plc
/
network.py
diff --git
a/sfa/plc/network.py
b/sfa/plc/network.py
index
c84ffa5
..
9276fb0
100644
(file)
--- a/
sfa/plc/network.py
+++ b/
sfa/plc/network.py
@@
-7,7
+7,6
@@
from lxml import etree
from xmlbuilder import XMLBuilder
from sfa.util.faults import *
from xmlbuilder import XMLBuilder
from sfa.util.faults import *
-#from sfa.util.sfalogging import sfa_logger
from sfa.util.xrn import get_authority
from sfa.util.plxrn import hrn_to_pl_slicename, hostname_to_urn
from sfa.util.xrn import get_authority
from sfa.util.plxrn import hrn_to_pl_slicename, hostname_to_urn
@@
-474,6
+473,10
@@
class Network:
if not relaxng(tree):
error = relaxng.error_log.last_error
message = "%s (line %s)" % (error.message, error.line)
if not relaxng(tree):
error = relaxng.error_log.last_error
message = "%s (line %s)" % (error.message, error.line)
+ self.api.logger.error("failed to validate rspec %r"%message)
+ self.api.logger.debug("---------- XML input BEG")
+ self.api.logger.debug(xml)
+ self.api.logger.debug("---------- XML input END")
raise InvalidRSpec(message)
self.rspec = rspec
raise InvalidRSpec(message)
self.rspec = rspec