All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Reyna, David" <david.reyna@windriver.com>
To: Amit Kumar Chaudhary <amit@floatingpondtech.com>
Cc: "toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: Re: Errors and Warnings listing on the dashboard page.
Date: Tue, 25 Feb 2014 17:22:57 +0000	[thread overview]
Message-ID: <5E53D14CE4667A45B9A06760DE5D13D055DD019E@ALA-MBB.corp.ad.wrs.com> (raw)
In-Reply-To: <etPan.5305e469.46e87ccd.3d6e@Amits-MacBook-Pro.local>

[-- Attachment #1: Type: text/plain, Size: 2016 bytes --]

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

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

[-- Attachment #2: Type: text/html, Size: 12364 bytes --]

  parent reply	other threads:[~2014-02-25 17:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20 11:18 Errors and Warnings listing on the dashboard page Amit Kumar Chaudhary
2014-02-20 15:04 ` Damian, Alexandru
     [not found] ` <AK2VCmoAADYfUwYZngQa1zNKOTA>
2014-02-24 15:16   ` Amit Kumar Chaudhary
     [not found]   ` <AK+VCmoAADfjUwtlVwOu4B9x834>
2014-02-26 12:13     ` Amit Kumar Chaudhary
2014-02-26 13:52       ` Barros Pena, Belen
2014-02-26 13:59         ` Barros Pena, Belen
2014-02-25 17:22 ` Reyna, David [this message]
     [not found] ` <AK+VCmoAAKVFUwzReQybVnuHOhU>
2014-02-26  6:54   ` Amit Kumar Chaudhary
2014-02-27 12:59 Amit Kumar Chaudhary
     [not found] <ALCVCmoAAM3hUw82zAi9LHa0k0Q>
2014-03-03 15:26 ` Amit Kumar Chaudhary
2014-03-03 17:14   ` Barros Pena, Belen
     [not found]   ` <ALGVCmoAAWuHUxS5NQQjRHR7lXs>
2014-03-07 13:01     ` Amit Kumar Chaudhary
2014-03-07 13:24       ` Barros Pena, Belen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5E53D14CE4667A45B9A06760DE5D13D055DD019E@ALA-MBB.corp.ad.wrs.com \
    --to=david.reyna@windriver.com \
    --cc=amit@floatingpondtech.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.