From 6cef132b0f26e9c0465620a557f7652e3b25c4e0 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Wed, 11 Feb 2026 09:33:26 +0100 Subject: [PATCH] scripts: ExampleWestCommand: Update logging Don't use the deprecated west.log module, instead of west.log.inf use WestCommand.inf. Signed-off-by: Pieter De Gendt --- scripts/example_west_command.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/example_west_command.py b/scripts/example_west_command.py index 7f68d7f4e..b64cc7182 100644 --- a/scripts/example_west_command.py +++ b/scripts/example_west_command.py @@ -7,7 +7,6 @@ Example of a west extension in the example-application repository.''' from west.commands import WestCommand # your extension must subclass this -from west import log # use this for user output class ExampleWestCommand(WestCommand): @@ -45,5 +44,5 @@ def do_run(self, args, unknown_args): # $ west my-command-name -o FOO BAR # --optional is FOO # required is BAR - log.inf('--optional is', args.optional) - log.inf('required is', args.required) + self.inf('--optional is', args.optional) + self.inf('required is', args.required)