Skip to content

Commit ba58b06

Browse files
pillo79dkalowsk
authored andcommitted
west build: fix a leftover "log" reference in build.py
A recent commit changed all references to the global 'west.log' instance (now deprecated) to the new WestCommand logging API, but another PR merged in the same period added an extra instance that is now causing CI to fail. Convert this last reference to the new API. Signed-off-by: Luca Burelli <[email protected]>
1 parent 6c2bc2f commit ba58b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/west_commands/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def do_run(self, args, remainder):
265265
with open(build_info_file, "w") as f:
266266
yaml.dump(build_command, f, default_flow_style=False)
267267
except Exception as e:
268-
log.wrn(f'Failed to create info file: {build_info_file},', e)
268+
self.wrn(f'Failed to create info file: {build_info_file},', e)
269269

270270
board, origin = self._find_board()
271271
self._run_cmake(board, origin, self.args.cmake_opts)

0 commit comments

Comments
 (0)