diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-08-30 17:28:38 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-31 11:37:11 +0100 |
commit | e9fbc7a2d2bf16566770ba49b3e09aa936e61cd3 (patch) | |
tree | fa79ef236920dc162d5c350ea254f748cd4e96ad /scripts/lib/devtool | |
parent | 7eb7dc861f5151c91321413aa1b23d026f334b7b (diff) | |
download | poky-e9fbc7a2d2bf16566770ba49b3e09aa936e61cd3.tar.gz |
devtool: build-image: rename LOG -> logger
Used logger variable name instead of LOG as it is used the rest
of the devtool code.
Pylint complains about 'logger' being invalid constant name,
but it's better to be consistent in naming.
(From OE-Core rev: a1c811df93e831a198464008564ce33ec98a3049)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r-- | scripts/lib/devtool/build-image.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/devtool/build-image.py b/scripts/lib/devtool/build-image.py index ebd9c59bfc..d875715fcd 100644 --- a/scripts/lib/devtool/build-image.py +++ b/scripts/lib/devtool/build-image.py | |||
@@ -23,7 +23,7 @@ import logging | |||
23 | from bb.process import ExecutionError | 23 | from bb.process import ExecutionError |
24 | from devtool import exec_build_env_command | 24 | from devtool import exec_build_env_command |
25 | 25 | ||
26 | LOG = logging.getLogger('devtool') | 26 | logger = logging.getLogger('devtool') |
27 | 27 | ||
28 | def plugin_init(pluginlist): | 28 | def plugin_init(pluginlist): |
29 | """Plugin initialization""" | 29 | """Plugin initialization""" |
@@ -44,7 +44,7 @@ def build_image(args, config, basepath, workspace): | |||
44 | except ExecutionError as err: | 44 | except ExecutionError as err: |
45 | return err.exitcode | 45 | return err.exitcode |
46 | 46 | ||
47 | LOG.info('Successfully built %s', image) | 47 | logger.info('Successfully built %s', image) |
48 | 48 | ||
49 | def register_commands(subparsers, context): | 49 | def register_commands(subparsers, context): |
50 | """Register devtool subcommands from the build-image plugin""" | 50 | """Register devtool subcommands from the build-image plugin""" |