Prechádzať zdrojové kódy

Log newlines (#3540)

* [ci skip] Fix file logging has no newlines

* [ci skip] I better understand this now
Mike Smith 7 rokov pred
rodič
commit
4d04979b54
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      toolset/utils/output_helper.py

+ 1 - 1
toolset/utils/output_helper.py

@@ -55,7 +55,7 @@ def log(log_text=None, **kwargs):
 
         if file is not None and os.fstat(
                 file.fileno()).st_size < TOO_MANY_BYTES:
-            file.write(seq.sub('', log_text))
+            file.write(seq.sub('', log_text + os.linesep))
             file.flush()
     except:
         pass