]> git.pld-linux.org Git - packages/firefox60-esr.git/blame - ignore-stats-errors.patch
- skip writing stats altogether
[packages/firefox60-esr.git] / ignore-stats-errors.patch
CommitLineData
d37d8649
JR
1--- firefox-60.7.0/python/mozbuild/mozbuild/controller/building.py~ 2019-05-14 21:13:24.000000000 +0200
2+++ firefox-60.7.0/python/mozbuild/mozbuild/controller/building.py 2019-05-26 20:22:50.485588101 +0200
1197cb59
JR
3@@ -307,21 +307,7 @@
4 self.warnings_database.prune()
5 self.warnings_database.save_to_file(self._warnings_path)
6
7- if not record_usage:
8- return
9-
10- try:
11- usage = self.get_resource_usage()
12- if not usage:
13- return
14-
15- self.log_resource_usage(usage)
16- with open(self._get_state_filename('build_resources.json'), 'w') as fh:
17- json.dump(self.resources.as_dict(), fh, indent=2)
18- except Exception as e:
19- self.log(logging.WARNING, 'build_resources_error',
20- {'msg': str(e)},
21- 'Exception when writing resource usage file: {msg}')
22+ return
d37d8649
JR
23
24 def _get_finder_cpu_usage(self):
25 """Obtain the CPU usage of the Finder app on OS X.
This page took 0.118499 seconds and 4 git commands to generate.