diff --git a/src/oebuild/parse_template.py b/src/oebuild/parse_template.py index 7f4cd1893d62f15cfc6d0e1aed3a84c5d819b2af..aa40f184c8904195e2c798b6fc57c847c4d913af 100644 --- a/src/oebuild/parse_template.py +++ b/src/oebuild/parse_template.py @@ -9,7 +9,7 @@ EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details. ''' -import logging +from oebuild.m_log import logger import sys from dataclasses import dataclass from typing import Optional @@ -127,7 +127,7 @@ class ParseTemplate: if self.platform is None: self.platform = os.path.splitext(config_name)[0].strip("\n") else: - logging.error("Only one platform is allowed") + logger.error("Only one platform is allowed") sys.exit(-1) self.platform_template = PlatformTemplate( machine=data['machine'], @@ -141,7 +141,7 @@ class ParseTemplate: raise PlatformNotAdd('please add platform template first') if self.platform is None: - logging.error("Platform not specified") + logger.error("Platform not specified") sys.exit(-1) support_arch = [] @@ -330,7 +330,7 @@ def parse_repos_layers_local_obj(common_yaml_path): parse from yaml to repos, layers and local ''' if not os.path.exists(common_yaml_path): - logging.error('can not find .oebuild/common.yaml in yocto-meta-openeuler') + logger.error('can not find .oebuild/common.yaml in yocto-meta-openeuler') sys.exit(-1) data = oebuild_util.read_yaml(common_yaml_path)