Backed out changeset 8fd728e30375 (bug 1531234) for spidermonkey bustages on structuredlog.py . CLOSED TREE
authorNarcis Beleuzu <nbeleuzu@mozilla.com>
Fri, 01 Mar 2019 03:31:10 +0200
changeset 519711 86bf081288cd630adca5b0669d3cd35efe9cd7f7
parent 519710 e6b6cba576de9976a84daf20a0aad81191664e05
child 519712 9d39099e5fc5768e979dda950af84df76ba4734d
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1531234
milestone67.0a1
backs out8fd728e30375435d190255e425ee1b78404d3e7e
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 8fd728e30375 (bug 1531234) for spidermonkey bustages on structuredlog.py . CLOSED TREE
js/src/tests/lib/structuredlog.py
--- a/js/src/tests/lib/structuredlog.py
+++ b/js/src/tests/lib/structuredlog.py
@@ -1,38 +1,34 @@
 # produce mozlog-compatible log messages, following the spec at
 # https://mozbase.readthedocs.io/en/latest/mozlog.html
 
-from __future__ import print_function
-
 import json
 import os
 
 from time import time
 
 
 class TestLogger(object):
     def __init__(self, source, threadname='main'):
         self.template = {
             'source': source,
             'thread': threadname,
             'pid': os.getpid(),
         }
-        directory = os.environ.get("MOZ_UPLOAD_DIR", ".")
-        self.fh = open(os.path.join(directory, threadname + "_raw.log"), "a")
 
     def _record(self, **kwargs):
         record = self.template.copy()
         record.update(**kwargs)
         if 'time' not in record:
             record['time'] = time()
         return record
 
     def _log_obj(self, obj):
-        print(json.dumps(obj, sort_keys=True), file=self.fh)
+        print(json.dumps(obj, sort_keys=True))
 
     def _log(self, **kwargs):
         self._log_obj(self._record(**kwargs))
 
     def suite_start(self):
         self._log(action='suite_start', tests=[])
 
     def suite_end(self):