From 1011957bb745f33d2709c9831f327a71489b2998 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 31 Jul 2024 22:12:25 +0200 Subject: live: use correct loglevel when reporting issues with listing cache contents instead of using info to report errors. --- src/live/ogOperations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 8505beb..42d415f 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -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({ -- cgit v1.2.3-18-g5258