west blobs: decrease verbosity

Make some no-op log messages require 'west -v blobs ...'.

The current implementation won't scale as the number of blobs goes up.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2022-08-18 18:25:47 -07:00 committed by Fabio Baltieri
parent e04487cad2
commit 21214cc83f

View file

@ -136,7 +136,7 @@ class Blobs(WestCommand):
blobs = self.get_blobs(args)
for blob in blobs:
if blob['status'] == 'A':
log.inf('Blob {module}: {abspath} is up to date'.format(**blob))
log.dbg('Blob {module}: {abspath} is up to date'.format(**blob))
continue
log.inf('Fetching blob {module}: {abspath}'.format(**blob))
self.fetch_blob(blob['url'], blob['abspath'])
@ -145,7 +145,7 @@ class Blobs(WestCommand):
blobs = self.get_blobs(args)
for blob in blobs:
if blob['status'] == 'D':
log.inf('Blob {module}: {abspath} not in filesystem'.format(**blob))
log.dbg('Blob {module}: {abspath} not in filesystem'.format(**blob))
continue
log.inf('Deleting blob {module}: {status} {abspath}'.format(**blob))
blob['abspath'].unlink()