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>
This commit is contained in:
Ed Bartosh
2015-08-30 17:28:38 +03:00
committed by Richard Purdie
parent 7eb7dc861f
commit e9fbc7a2d2

View 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"""