Skip to content

Commit 6cef132

Browse files
committed
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 <pieter.degendt@basalte.be>
1 parent a58c752 commit 6cef132

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/example_west_command.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
Example of a west extension in the example-application repository.'''
88

99
from west.commands import WestCommand # your extension must subclass this
10-
from west import log # use this for user output
1110

1211
class ExampleWestCommand(WestCommand):
1312

@@ -45,5 +44,5 @@ def do_run(self, args, unknown_args):
4544
# $ west my-command-name -o FOO BAR
4645
# --optional is FOO
4746
# required is BAR
48-
log.inf('--optional is', args.optional)
49-
log.inf('required is', args.required)
47+
self.inf('--optional is', args.optional)
48+
self.inf('required is', args.required)

0 commit comments

Comments
 (0)