From: SPN Salome - CEA Date: Wed, 7 Jun 2017 14:19:03 +0000 (+0200) Subject: bug fix for the jobs command X-Git-Tag: V8_3_0rc2~5^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2a6a0fc5ab906cbf6a213a4e2caf36c4a818a0c9;p=tools%2Fsat.git bug fix for the jobs command --- diff --git a/src/logger.py b/src/logger.py index 452245e..899df63 100644 --- a/src/logger.py +++ b/src/logger.py @@ -87,12 +87,12 @@ class Logger(object): try: self.logTxtFile = open(str(self.txtFilePath), 'w') except IOError: - msg1 = _("WARNING! Trying to write to a file that" - " is not accessible:") - msg2 = _("The logs won't be written.") - print("%s\n%s\n%s\n" % (src.printcolors.printcWarning(msg1), - src.printcolors.printcLabel(str(self.txtFilePath)), - src.printcolors.printcWarning(msg2) )) + #msg1 = _("WARNING! Trying to write to a file that" + # " is not accessible:") + #msg2 = _("The logs won't be written.") + #print("%s\n%s\n%s\n" % (src.printcolors.printcWarning(msg1), + # src.printcolors.printcLabel(str(self.txtFilePath)), + # src.printcolors.printcWarning(msg2) )) self.logTxtFile = tempfile.TemporaryFile() # If the option all_in_terminal was called, all the system commands @@ -396,4 +396,4 @@ def update_hat_xml(logDir, application=None, notShownCommands = []): "full_command" : full_cmd}) # Write the file on the hard drive - xmlHat.write_tree('hat.xsl') \ No newline at end of file + xmlHat.write_tree('hat.xsl')