summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-08-30 17:28:38 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-31 11:37:11 +0100
commite9fbc7a2d2bf16566770ba49b3e09aa936e61cd3 (patch)
treefa79ef236920dc162d5c350ea254f748cd4e96ad /scripts/lib/devtool
parent7eb7dc861f5151c91321413aa1b23d026f334b7b (diff)
downloadpoky-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.py4
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
23from bb.process import ExecutionError 23from bb.process import ExecutionError
24from devtool import exec_build_env_command 24from devtool import exec_build_env_command
25 25
26LOG = logging.getLogger('devtool') 26logger = logging.getLogger('devtool')
27 27
28def plugin_init(pluginlist): 28def 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
49def register_commands(subparsers, context): 49def register_commands(subparsers, context):
50 """Register devtool subcommands from the build-image plugin""" 50 """Register devtool subcommands from the build-image plugin"""