[oe-commits] Ed Bartosh : devtool: build-image: rename LOG -> logger

git at git.openembedded.org git at git.openembedded.org
Mon Aug 31 10:37:33 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: a1c811df93e831a198464008564ce33ec98a3049
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a1c811df93e831a198464008564ce33ec98a3049

Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date:   Sun Aug 30 17:28:38 2015 +0300

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.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>

---

 scripts/lib/devtool/build-image.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/devtool/build-image.py b/scripts/lib/devtool/build-image.py
index ebd9c59..d875715 100644
--- a/scripts/lib/devtool/build-image.py
+++ b/scripts/lib/devtool/build-image.py
@@ -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"""



More information about the Openembedded-commits mailing list