From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Robert Yang <liezhi.yang@windriver.com>,
bitbake-devel@lists.openembedded.org
Subject: Re: [WIP][RFC PATCH 2/5] bitbake: main: add log handler when status-only
Date: Tue, 08 Aug 2017 13:14:34 +0100 [thread overview]
Message-ID: <1502194474.18633.245.camel@linuxfoundation.org> (raw)
In-Reply-To: <c75315a4930a447c156f55e1ce80f4354e1507e6.1502183410.git.liezhi.yang@windriver.com>
On Tue, 2017-08-08 at 02:12 -0700, Robert Yang wrote:
> The ui is not a must for logger, and use logger when status-only is
> very good
> for debugging.
>
> e.g.:
> $ bitbake --status
> NOTE: bitbake server is not running.
>
> $ bitbake --server-only -B localhost:-1
> $ bitbake --status
> NOTE: Reconnecting to bitbake server...
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> bitbake/lib/bb/main.py | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
> index 62f9e1eacf1..fb082e7e0f3 100755
> --- a/bitbake/lib/bb/main.py
> +++ b/bitbake/lib/bb/main.py
> @@ -397,9 +397,7 @@ def bitbake_main(configParams, configuration):
> def setup_bitbake(configParams, configuration, extrafeatures=None,
> setup_logging=True):
> # Ensure logging messages get sent to the UI as events
> handler = bb.event.LogHandler()
> - if setup_logging and not configParams.status_only:
> - # In status only mode there are no logs and no UI
> - logger.addHandler(handler)
> + logger.addHandler(handler)
>
> # Clear away any spurious environment variables while we stoke
> up the cooker
> cleanedvars = bb.utils.clean_environment()
The patch doesn't seem to apply, there is no setup_logging parameter on
master?
Cheers,
Richard
next prev parent reply other threads:[~2017-08-08 12:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-08 9:12 [WIP][RFC PATCH 0/5] fix for memres bitbake Robert Yang
2017-08-08 9:12 ` [WIP][RFC PATCH 1/5] btiabke: main.py: remove unneeded float() Robert Yang
2017-08-08 9:12 ` [WIP][RFC PATCH 2/5] bitbake: main: add log handler when status-only Robert Yang
2017-08-08 12:14 ` Richard Purdie [this message]
2017-08-08 14:33 ` Robert Yang
2017-08-08 9:12 ` [WIP][RFC PATCH 3/5] bitbake: process: fix disconnect when BB_SERVER_TIMEOUT Robert Yang
2017-08-08 9:12 ` [WIP][RFC PATCH 4/5] bitbake: main: handle BB_SERVER_TIMEOUT = -1 Robert Yang
2017-08-08 9:12 ` [WIP][RFC PATCH 5/5] bitbake: main: make observe-only work without --bind Robert Yang
2017-08-08 12:50 ` Richard Purdie
2017-08-08 14:21 ` Robert Yang
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=1502194474.18633.245.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=liezhi.yang@windriver.com \
/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.