poky/scripts/lib
Chang Rebecca Swee Fun 5778e35378 scriptutils: pass in logger as parameter
logger was not defined in scriptutils.py based on the
observation in python traceback.

Traceback (most recent call last):
  File "/workdir/poky/scripts/devtool", line 351, in <module>
    ret = main()
  File "/workdir/poky/scripts/devtool", line 338, in main
    ret = args.func(args, config, basepath, workspace)
  File "/workdir/poky/scripts/lib/devtool/utilcmds.py", line 55, in
edit_recipe
    return scriptutils.run_editor(find_recipe(args, config, basepath,
workspace))
  File "/workdir/poky/scripts/lib/scriptutils.py", line 141, in
run_editor
    logger.error("Execution of '%s' failed: %s" % (editor, exc))
NameError: name 'logger' is not defined

We pass in logger as parameter to run_editor() from where it has
been called (devtool/utilcmds.py and recipetool/newappend.py),
which both modules already has logger setup.

(From OE-Core rev: 21f04b61973dd9029f0e6bff5445e31cd762bf32)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-21 22:51:37 +01:00
..
bsp linux-yocto-custom: include a user feature description file 2017-07-06 15:03:10 +01:00
build_perf scripts/oe-build-perf-report: fix 'charts ready' console message 2017-04-05 23:22:13 +01:00
compatlayer yocto-compat-layer.py: make signature check code reusable 2017-07-06 14:38:14 +01:00
devtool scriptutils: pass in logger as parameter 2017-07-21 22:51:37 +01:00
recipetool scriptutils: pass in logger as parameter 2017-07-21 22:51:37 +01:00
wic wic: fix calculation of partition number 2017-07-21 22:51:37 +01:00
argparse_oe.py argparse_oe: Add int_positive type 2017-07-21 08:44:25 +01:00
scriptpath.py scripts: consolidate code to find bitbake path 2014-06-25 13:51:45 +01:00
scriptutils.py scriptutils: pass in logger as parameter 2017-07-21 22:51:37 +01:00