scripts: west_commands: completion: Remove deprecated west.log

The global state west.log is deprecated, replace with WestCommand
logging.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-09-29 15:30:31 +02:00 committed by Anas Nashif
parent a74c9be593
commit f8ec1c8a00

View file

@ -5,7 +5,6 @@
import argparse
import os
from west import log
from west.commands import WestCommand
# Relative to the folder where this script lives
@ -78,4 +77,4 @@ class Completion(WestCommand):
with open(cf, 'r') as f:
print(f.read())
except FileNotFoundError as e:
log.die('Unable to find completion file: {}'.format(e))
self.die('Unable to find completion file: {}'.format(e))