Hi Amit,

 

We have a scrum meeting every Wednesday morning (8:00 am Pacific Time) with the Yocto team to discuss the Toaster GUI implementation progress and issues. Would you like to join us? I can include you into my invitation.

 

- David

 

From: toaster-bounces@yoctoproject.org [mailto:toaster-bounces@yoctoproject.org] On Behalf Of Amit Kumar Chaudhary
Sent: Thursday, February 20, 2014 3:18 AM
To: toaster@yoctoproject.org
Subject: [Toaster] Errors and Warnings listing on the dashboard page.

 

Hello, 

 

I am just beginning with the toaster and web apps in general, and I am trying to add errors and warning listing to the build dashboard page, as prototyped at

 

 

I am trying to re-use the following code --

 

<td>{{build.errors_no}}:{% if  build.errors_no %}{% for error in logs %}{% if error.build == build %}{% if error.level == 2 %}<p>{{error.message}}</p>{% endif %}{% endif %}{% endfor %}{% else %}None{% endif %}</td>

 

from ~/poky-contrib/bitbake/lib/toaster/bldviewer/templates/simple_build.html.

 

And, I am expecting the logs, for example at

~/poky-contrib/build/tmp/log/cooker/qemux86/20140213120738.log

 

to be read via LogMessage class below

 

class LogMessage(models.Model):

    INFO = 0

    WARNING = 1

    ERROR = 2

 

    LOG_LEVEL = ( (INFO, "info"),

            (WARNING, "warn"),

            (ERROR, "error") )

 

    build = models.ForeignKey(Build)

    level = models.IntegerField(choices=LOG_LEVEL, default=INFO)

—>    message=models.CharField(max_length=240)

    pathname = models.FilePathField(max_length=255, blank=True)

    lineno = models.IntegerField(null=True)

 

implemented in ~/poky-contrib/bitbake/lib/toaster/orm/models.py.

 

But, I can’t seem to find the code that does it, reading from the log file to the sqlite table. Could someone please point me to the files/path that might contain this code, or such code for other tables.

 

Thanks!

 

-- 

Amit Kumar Chaudhary