X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flogger.py;h=545ac0b8dfbe368f7d2333b23129455ed653dffa;hb=28cebd157f9d39920d0480232e7c361716ca45bb;hp=fe65a423bcbfce261abf71dee35a9dc5e4577809;hpb=5fd8653b247610abe6f4aa49e752bf5dc1bc453e;p=tools%2Fsat.git diff --git a/src/logger.py b/src/logger.py index fe65a42..545ac0b 100755 --- a/src/logger.py +++ b/src/logger.py @@ -134,7 +134,7 @@ class Logger(object): self.config.VARS.command}) # version of salomeTools self.xmlFile.append_node_attrib("Site", attrib={"satversion" : - self.config.INTERNAL.sat_version}) + src.get_salometool_version(self.config)}) # machine name on which the command has been launched self.xmlFile.append_node_attrib("Site", attrib={"hostname" : self.config.VARS.hostname}) @@ -178,7 +178,7 @@ class Logger(object): """ xmlLinks = self.xmlFile.xmlroot.find("Links") flc = src.xmlManager.escapeSequence(full_launched_command) - att = {"command" : command_name, "passed" : command_res, "launchedCommand" : flc} + att = {"command" : command_name, "passed" : str(command_res), "launchedCommand" : flc} src.xmlManager.add_simple_node(xmlLinks, "link", text = log_file_name, attrib = att) def write(self, message, level=None, screenOnly=False): @@ -549,7 +549,7 @@ def isCurrentLoggerUnittest(): res = True else: res = False - DBG.write("isCurrentLoggerUnittest %s" % logger.name, res) + #DBG.write("isCurrentLoggerUnittest %s" % logger.name, res) return res def sendMessageToCurrentLogger(message, level):