> all messages are put into the log but at differing log levels.
But there aren't the "log levels" in the file (as NOTE, WARN, ERROR) now,
it writes only P, error message and type of QA check (not the selected
severity of it, like bb.error, bb.warn, bb.note used in the function for
normal output).
See the function above package_qa_handle_error:
def package_qa_write_error(type, error, d):
logfile = d.getVar('QA_LOGFILE')
if logfile:
p = d.getVar('P')
with open(logfile, "a+") as f:
f.write("%s: %s [%s]\n" % (p, error, type))
On Mon, Aug 21, 2017 at 11:07 PM, Richard Purdie <
[email protected]> wrote:
> On Mon, 2017-08-21 at 22:56 +0200, Martin Jansa wrote:
> > * QA check which aren't included in WARN_QA and ERROR_QA are shown
> > during the build only as NOTE message (not shown at all with
> > default
> > knotty setting), so it might be surprising to see them later in
> > qa.log
> > file
> >
> > Signed-off-by: Martin Jansa <[email protected]>
> > ---
> > meta/classes/insane.bbclass | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
>
> I've just been having a look at this and I think its by design, all
> messages are put into the log but at differing log levels. I think the
> correct thing to do may be to filter it as you proposed in your CI
> system.
>
> Any other opinions?
>
> Cheers,
>
> Richard
>
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core