From d37ae60751afca65b84d66da8e62a8ece22055c1 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Sun, 29 Sep 2024 16:22:48 +0200 Subject: [PATCH] scripts: west_commands: zephyr_ext_common: Remove deprecated west.log The global state west.log is deprecated, replace with WestCommand logging. Signed-off-by: Pieter De Gendt --- scripts/west_commands/zephyr_ext_common.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/west_commands/zephyr_ext_common.py b/scripts/west_commands/zephyr_ext_common.py index d2d31a620d1..81ca73af292 100644 --- a/scripts/west_commands/zephyr_ext_common.py +++ b/scripts/west_commands/zephyr_ext_common.py @@ -12,7 +12,6 @@ import os import shlex from pathlib import Path -from west import log from west.commands import WestCommand # This relies on this file being zephyr/scripts/foo/bar.py. @@ -44,8 +43,8 @@ class Forceable(WestCommand): self.args.force being True can allow execution to proceed. ''' if not (cond or self.args.force): - log.err(msg) - log.die('refusing to proceed without --force due to above error') + self.err(msg) + self.die('refusing to proceed without --force due to above error') def config_get_words(self, section_key, fallback=None): unparsed = self.config.get(section_key)