diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-14 18:54:32 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 23:18:16 +0000 |
commit | fe2d6022409248063403eed2f2de97f438dc7f03 (patch) | |
tree | acf85ab9205c2ac8e73c20bf7d823c0a452b87a2 /scripts/lib/wic/ksparser.py | |
parent | 58ff06f1e7a19bef5199cc938c910af1f599373a (diff) | |
download | poky-fe2d6022409248063403eed2f2de97f438dc7f03.tar.gz |
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 <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/ksparser.py')
-rw-r--r-- | scripts/lib/wic/ksparser.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 968b8e1312..a0393008eb 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py | |||
@@ -27,12 +27,15 @@ | |||
27 | 27 | ||
28 | import os | 28 | import os |
29 | import shlex | 29 | import shlex |
30 | import logging | ||
31 | |||
30 | from argparse import ArgumentParser, ArgumentError, ArgumentTypeError | 32 | from argparse import ArgumentParser, ArgumentError, ArgumentTypeError |
31 | 33 | ||
32 | from wic import msger | ||
33 | from wic.engine import find_canned | 34 | from wic.engine import find_canned |
34 | from wic.partition import Partition | 35 | from wic.partition import Partition |
35 | 36 | ||
37 | logger = logging.getLogger('wic') | ||
38 | |||
36 | class KickStartError(Exception): | 39 | class KickStartError(Exception): |
37 | """Custom exception.""" | 40 | """Custom exception.""" |
38 | pass | 41 | pass |
@@ -168,7 +171,7 @@ class KickStart(): | |||
168 | 171 | ||
169 | self._parse(parser, confpath) | 172 | self._parse(parser, confpath) |
170 | if not self.bootloader: | 173 | if not self.bootloader: |
171 | msger.warning('bootloader config not specified, using defaults') | 174 | logger.warning('bootloader config not specified, using defaults\n') |
172 | self.bootloader = bootloader.parse_args([]) | 175 | self.bootloader = bootloader.parse_args([]) |
173 | 176 | ||
174 | def _parse(self, parser, confpath): | 177 | def _parse(self, parser, confpath): |