Skip to content

Commit

Permalink
scripts: west_commands: boards: Remove deprecated west.log
Browse files Browse the repository at this point in the history
The global state west.log is deprecated, replace with WestCommand
logging.

Signed-off-by: Pieter De Gendt <[email protected]>
  • Loading branch information
pdgendt authored and nashif committed Nov 18, 2024
1 parent d3ecdd9 commit a74c9be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/west_commands/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import sys
import textwrap

from west import log
from west.commands import WestCommand

from zephyr_ext_common import ZEPHYR_BASE
Expand Down Expand Up @@ -94,13 +93,13 @@ def do_run(self, args, _):
for board in list_boards.find_boards(args):
if name_re is not None and not name_re.search(board.name):
continue
log.inf(args.format.format(name=board.name, arch=board.arch,
dir=board.dir, hwm=board.hwm, qualifiers=''))
self.inf(args.format.format(name=board.name, arch=board.arch,
dir=board.dir, hwm=board.hwm, qualifiers=''))

for board in list_boards.find_v2_boards(args).values():
if name_re is not None and not name_re.search(board.name):
continue
log.inf(
self.inf(
args.format.format(
name=board.name,
full_name=board.full_name,
Expand Down

0 comments on commit a74c9be

Please sign in to comment.