live: use correct loglevel when reporting issues with listing cache contents

instead of using info to report errors.
master v1.3.2-14
OpenGnSys Support Team 2024-07-31 22:12:25 +02:00
parent 9b317cf3e0
commit 1011957bb7
1 changed files with 2 additions and 2 deletions

View File

@ -136,10 +136,10 @@ class OgLiveOperations:
with open(checksum_file_path, 'r') as f:
image_checksum = f.read()
except (FileNotFoundError, PermissionError, OSError) as e:
logging.info(f'Error reading file at {checksum_file_path}: {e}')
logging.error(f'Cannot read checksum file {checksum_file_path}: {e}')
if not image_checksum:
logging.info(f'Warning: empty checksum for image {file_name}')
logging.error(f'Empty checksum for image {file_name}')
image_size = os.stat(file_path).st_size
cache_contents.append({