From fe2d6022409248063403eed2f2de97f438dc7f03 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 14 Feb 2017 18:54:32 +0200 Subject: wic: use wic logger in core modules Replaced msger with wic logger in the core wic modules. (From OE-Core rev: cdd6675951b74075c9b9159f7465a88f83775bac) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- scripts/lib/wic/help.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts/lib/wic/help.py') diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 63bbc23a83..47e3d1666b 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py @@ -30,8 +30,10 @@ import logging from wic.plugin import pluginmgr, PLUGIN_TYPES +logger = logging.getLogger('wic') + def subcommand_error(args): - logging.info("invalid subcommand %s", args[0]) + logger.info("invalid subcommand %s", args[0]) def display_help(subcommand, subcommands): @@ -81,13 +83,13 @@ def invoke_subcommand(args, parser, main_command_usage, subcommands): Should use argparse, but has to work in 2.6. """ if not args: - logging.error("No subcommand specified, exiting") + logger.error("No subcommand specified, exiting") parser.print_help() return 1 elif args[0] == "help": wic_help(args, main_command_usage, subcommands) elif args[0] not in subcommands: - logging.error("Unsupported subcommand %s, exiting\n", args[0]) + logger.error("Unsupported subcommand %s, exiting\n", args[0]) parser.print_help() return 1 else: -- cgit v1.2.3-54-g00ecf