diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-09-26 18:10:29 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan@codethink.co.uk> | 2020-09-26 18:10:29 +0900 |
commit | 89a8c9df997bd4dbc5bd6b1f7d5e9dc697fcf780 (patch) | |
tree | e1233b9e34cc712a4b49714bb7f64c2f60d537fa /src | |
parent | 344ab38a7143d84489d62f75e75e4bc88f79e756 (diff) | |
download | buildstream-89a8c9df997bd4dbc5bd6b1f7d5e9dc697fcf780.tar.gz |
BuildElement: Fix logging regressiontristan/fix-logging-regression
Staging activities are usually silent nested, this regressed when
porting to recently changed APIs.
Diffstat (limited to 'src')
-rw-r--r-- | src/buildstream/buildelement.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildstream/buildelement.py b/src/buildstream/buildelement.py index 6020e67db..5554e7fb2 100644 --- a/src/buildstream/buildelement.py +++ b/src/buildstream/buildelement.py @@ -279,8 +279,9 @@ class BuildElement(Element): # sorted_locations = sorted(self.__layout) for location in sorted_locations: - element_list = [element for element, _ in self.__layout[location]] - self.stage_dependency_artifacts(sandbox, element_list, path=location) + with self.timed_activity("Staging dependencies at: {}".format(location), silent_nested=True): + element_list = [element for element, _ in self.__layout[location]] + self.stage_dependency_artifacts(sandbox, element_list, path=location) # Now integrate any elements staged in the root # |