diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2019-07-02 17:14:44 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-05 09:44:45 +0000 |
commit | cfbab5fe76f8011bc8b6b895b2d3bfff4ea167b3 (patch) | |
tree | 51abb49a04c9797e7def9c8929e8f427037c61ed /src/buildstream/_frontend | |
parent | b60fffebf563edfe258cbb893754197af1ac5a0b (diff) | |
download | buildstream-cfbab5fe76f8011bc8b6b895b2d3bfff4ea167b3.tar.gz |
Refactor, use context.messenger directly
Instead of having methods in Context forward calls on to the Messenger,
have folks call the Messenger directly. Remove the forwarding methods in
Context.
Diffstat (limited to 'src/buildstream/_frontend')
-rw-r--r-- | src/buildstream/_frontend/app.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_frontend/app.py b/src/buildstream/_frontend/app.py index 52d5f2d47..9550fea40 100644 --- a/src/buildstream/_frontend/app.py +++ b/src/buildstream/_frontend/app.py @@ -213,7 +213,7 @@ class App(): indent=INDENT) # Propagate pipeline feedback to the user - self.context.set_message_handler(self._message_handler) + self.context.messenger.set_message_handler(self._message_handler) # Preflight the artifact cache after initializing logging, # this can cause messages to be emitted. @@ -459,7 +459,7 @@ class App(): # def _message(self, message_type, message, **kwargs): args = dict(kwargs) - self.context.message( + self.context.messenger.message( Message(None, message_type, message, **args)) # Exception handler |