summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-03-21 23:12:42 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-03-21 23:38:07 +0900
commit41274b2d811d7106960d92fe095da31eb32f8cc9 (patch)
treec52389565cf5dc6f20e21dad9fe9181dd9be5fdc
parent21fe51fbc2095a19e201ccfaad8db3dddf61ccb5 (diff)
downloadbuildstream-41274b2d811d7106960d92fe095da31eb32f8cc9.tar.gz
_scheduler/trackqueue.py: Remove unsafe calls to push/pop message depth
These messages have been silenced more reliably already in Source._update_state(), using the Context._silence() context manager.
-rw-r--r--buildstream/_scheduler/trackqueue.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/buildstream/_scheduler/trackqueue.py b/buildstream/_scheduler/trackqueue.py
index 554d147e9..4ba0f82f5 100644
--- a/buildstream/_scheduler/trackqueue.py
+++ b/buildstream/_scheduler/trackqueue.py
@@ -72,10 +72,7 @@ class TrackQueue(Queue):
source.warn("Failed to update project file",
detail="{}".format(e))
- context = element._get_context()
- context._push_message_depth(True)
element._update_state()
- context._pop_message_depth()
# We'll appear as a skipped element if tracking resulted in no change
return changed