Bug 304 - Python tasks should output all logging data, similar to shell tasks
Summary: Python tasks should output all logging data, similar to shell tasks
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard: Patch our for review
Depends on:
Blocks:
 
Reported: 2010-09-09 08:56 UTC by Mark Hatle
Modified: 2011-08-15 09:47 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hatle 2010-09-09 08:56:41 UTC
Python tasks should output all logging data, similar to how the shell tasks do it.

For example, if something fails in do_fetch, it can be unclear as to what was attempted to be run, any output from the tools run, or diagnostic messages that may have occured.
Comment 1 Mark Hatle 2010-10-11 07:01:13 UTC
See bug 377.  This is the opposite issue to that problem.

We need to ensure that all of the messages generated by a task: note, warning, error, debug... get logged to the task logs, similar to what happens already via shell scripts that run.
Comment 2 Richard Purdie 2010-10-11 07:02:26 UTC
Specifically, the debug messages for the task should go to the logfile even if they don't go to the console.
Comment 3 Ke Yu 2010-12-09 17:42:45 UTC
Richard, it is already fixed, right?
Comment 4 Richard Purdie 2011-02-24 06:35:11 UTC
Specifically at the bitbake level we need to separate the level handling for the different handlers. The handler setup in bin/bitbake should be controlled by the current level handling but the handler in build.py should have the option of using a different log level. The core logger should have its level left unset.

This is an invasive change for 1.0 at this point so I'd prefer to leave it for 1.1. The underlying problem of log data not making it to the log files has been fixed.
Comment 5 Richard Purdie 2011-07-06 09:08:08 UTC
http://lists.linuxtogo.org/pipermail/bitbake-devel/2011-July/001034.html is a start at what we'd need to resolve this bug
Comment 6 Richard Purdie 2011-08-15 09:47:24 UTC
The final pieces of this merged in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=7ee93b206a6389e6eb7b9440dc2fae801c77bc9b