mirror of https://git.48k.eu/ogclient
live: use correct loglevel when reporting issues with listing cache contents
instead of using info to report errors.master v1.3.2-14
parent
9b317cf3e0
commit
1011957bb7
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue