<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Thanks for these, Richard.</div><div class="gmail_quote"><br></div><div class="gmail_quote">On 11 October 2015 at 10:22, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The console log data is written to is created at console initialisation<br>
time and does not change over reset events. This ensures the<br>
BB_CONSOLELOG value is correct over such resets by preserving it.<br></blockquote><div><br></div><div>I&#39;ve put your three patches on top of master and ran a few builds. The result is that all of the logs for those builds are going into a single timestamped file. Before, they went to separate files. Is this intentional, or was the old behaviour incorrect? (Ideally, toaster needs a separate log file for each build.)</div><div><br></div><div>Thanks.</div><div>Elliot</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Signed-off-by: Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt;<br>
---<br>
 bitbake/lib/bb/cooker.py | 7 +++++++<br>
 1 file changed, 7 insertions(+)<br>
<br>
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py<br>
index 9c9d761..ba0a8fe 100644<br>
--- a/bitbake/lib/bb/cooker.py<br>
+++ b/bitbake/lib/bb/cooker.py<br>
@@ -244,6 +244,11 @@ class BBCooker:<br>
         self.state = state.initial<br>
         self.caches_array = []<br>
<br>
+        # Need to preserve BB_CONSOLELOG over resets<br>
+        consolelog = None<br>
+        if hasattr(self, &quot;data&quot;):<br>
+            consolelog = self.data.getVar(&quot;BB_CONSOLELOG&quot;, True)<br>
+<br>
         if CookerFeatures.BASEDATASTORE_TRACKING in self.featureset:<br>
             self.enableDataTracking()<br>
<br>
@@ -270,6 +275,8 @@ class BBCooker:<br>
         self.data = self.databuilder.data<br>
         self.data_hash = self.databuilder.data_hash<br>
<br>
+        if consolelog:<br>
+            self.data.setVar(&quot;BB_CONSOLELOG&quot;, consolelog)<br>
<br>
         # we log all events to a file if so directed<br>
         if self.configuration.writeeventlog:<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Elliot Smith<br>Software Engineer<br>Intel Open Source Technology Centre</div></div></div>
</div></div>