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

https://www.yoctoproject.org/toaster/build-dashboard-failed.html#errors

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