[elbe-devel] [PATCH v3 25/52] Add logging to opt.output for command toolchainextract

Olivier Dion dion at linutronix.de
Fri Jul 5 12:31:08 CEST 2019


On 2019-07-05T11:06:25+0200, Torben Hohn wrote:

> On Thu, Jun 27, 2019 at 02:44:39PM +0200, dion at linutronix.de wrote:
> > From: Olivier Dion <dion at linutronix.de>
> > 
> > Signed-off-by: Olivier Dion <dion at linutronix.de>
> > ---
> >  elbepack/commands/toolchainextract.py | 22 ++++++++++++----------
> >  1 file changed, 12 insertions(+), 10 deletions(-)
> > 
> > diff --git a/elbepack/commands/toolchainextract.py b/elbepack/commands/toolchainextract.py
> > index aaf26ac2..01077a6e 100644
> > --- a/elbepack/commands/toolchainextract.py
> > +++ b/elbepack/commands/toolchainextract.py
> > @@ -13,7 +13,7 @@ from elbepack.xmldefaults import ElbeDefaults
> >  from elbepack.repomanager import ToolchainRepo
> >  from elbepack.debpkg import build_binary_deb
> >  from elbepack.toolchain import get_toolchain
> > -from elbepack.asciidoclog import StdoutLog
> > +from elbepack.log import elbe_logging
> >  
> >  
> >  def run_command(argv):
> > @@ -68,14 +68,16 @@ def run_command(argv):
> >  
> >      pkgs = os.listdir(tmpdir)
> >  
> > -    repo = ToolchainRepo(
> > -        defaults["arch"],
> > -        opt.codename,
> > -        opt.output,
> > -        StdoutLog())
> > +    with elbe_logging(stdout=True):

> this is not opt.output...

True.  This should be reword to stdout and not opt.output


-- 
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen



More information about the elbe-devel mailing list