Hello, The LogMessage table is designed to hold logs coming from the build process itself, and not logs that result from normal task execution. It is the difference between the output displayed from the bitbake command, and the output from the "make" command in a "do_compile" task. For the latter case, we currently do not hold/save the content of such log files. We do not have yet a strategy on determining what log files are important, and saving everything may be a prohibitive cost in terms of storage. Hope this helps, Alex On Thu, Feb 20, 2014 at 11:18 AM, Amit Kumar Chaudhary < amit@floatingpondtech.com> wrote: > 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 -- > > {{build.errors_no}}:{% if build.errors_no %}{% for error in logs %}{% > if error.build == build %}{% if error.level == 2 > %}

{{error.message}}

{% endif %}{% endif %}{% endfor %}{% else > %}None{% endif %} > > 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 > > _______________________________________________ > toaster mailing list > toaster@yoctoproject.org > https://lists.yoctoproject.org/listinfo/toaster > > -- Alex Damian Yocto Project SSG / OTC