]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: build-image: rename LOG -> logger
authorEd Bartosh <ed.bartosh@linux.intel.com>
Sun, 30 Aug 2015 14:28:38 +0000 (17:28 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 31 Aug 2015 10:36:50 +0000 (11:36 +0100)
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.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
scripts/lib/devtool/build-image.py

index ebd9c59bfc339fa1390aca23c94457687ed89db4..d875715fcdc070d47f626a70ffa8fddd342e7cbb 100644 (file)
@@ -23,7 +23,7 @@ import logging
 from bb.process import ExecutionError
 from devtool import exec_build_env_command
 
-LOG = logging.getLogger('devtool')
+logger = logging.getLogger('devtool')
 
 def plugin_init(pluginlist):
     """Plugin initialization"""
@@ -44,7 +44,7 @@ def build_image(args, config, basepath, workspace):
     except ExecutionError as err:
         return err.exitcode
 
-    LOG.info('Successfully built %s', image)
+    logger.info('Successfully built %s', image)
 
 def register_commands(subparsers, context):
     """Register devtool subcommands from the build-image plugin"""