From c9a1e7a473c315182eebdd4565ae95a5d8c19af3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrg=20Billeter?= <j@bitron.ch>
Date: Sun, 18 Nov 2018 22:16:39 +0100
Subject: [PATCH] element.py: Pass element object to sandbox

This allows the sandbox to output messages using the plugin id.
---
 buildstream/element.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/buildstream/element.py b/buildstream/element.py
index e0d8ce77df..57907861c0 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -2157,6 +2157,7 @@ class Element(Plugin):
 
             sandbox = SandboxRemote(context, project,
                                     directory,
+                                    plugin=self,
                                     stdout=stdout,
                                     stderr=stderr,
                                     config=config,
@@ -2175,6 +2176,7 @@ class Element(Plugin):
 
             sandbox = platform.create_sandbox(context, project,
                                               directory,
+                                              plugin=self,
                                               stdout=stdout,
                                               stderr=stderr,
                                               config=config,
-- 
GitLab