libtuning: Be a bit more verbose
Print a info on every image that gets processed and a warning on every image that gets ignored. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
This commit is contained in:
parent
611242b259
commit
a043e55110
1 changed files with 4 additions and 0 deletions
|
@ -92,9 +92,13 @@ def load_images(input_dir: str, config: dict, load_nonlsc: bool, load_lsc: bool)
|
|||
images = []
|
||||
for f in files:
|
||||
color, lux, lsc_only = _parse_image_filename(f)
|
||||
|
||||
if color is None:
|
||||
logger.warning(f'Ignoring "{f.name}" as it has no associated color temperature')
|
||||
continue
|
||||
|
||||
logger.info(f'Process image "{f.name}" (color={color}, lux={lux}, lsc_only={lsc_only})')
|
||||
|
||||
# Skip lsc image if we don't need it
|
||||
if lsc_only and not load_lsc:
|
||||
logger.warning(f'Skipping {f.name} as this tuner has no LSC module')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue